mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-10-31 23:15:05 +01:00
Move "dist" to website root
This commit is contained in:
parent
b2cb199632
commit
ec1a939b2e
@ -43,12 +43,12 @@ It is also recommended you lint your files before the PR.
|
||||
- **`website`**: contains all the website related files.
|
||||
- **`src`**: contains all the markdown files used for the website.
|
||||
- **`.vitepress`**:
|
||||
- **[`dist`](https://vitepress.dev/guide/deploy)**: contains built files for distribution.
|
||||
Note this directory is only updated when a release happens or when you run the build command.
|
||||
Changes to this folder will not carry over with Git.
|
||||
- **`theme`**: contains custom theme files.
|
||||
- `config.ts`: main configuration file for VitePress.
|
||||
- **`public`**: files to be exposed publicly without any processing.
|
||||
- **[`dist`](https://vitepress.dev/guide/deploy)**: contains built files for distribution.
|
||||
Note this directory is only updated when a release happens or when you run the build command.
|
||||
Changes to this folder will not carry over with Git.
|
||||
- `package.json`: contains information about which plugins are installed in the project.
|
||||
|
||||
## Images and Videos guidelines
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
[build]
|
||||
base = "website"
|
||||
publish = "src/.vitepress/dist"
|
||||
publish = "dist"
|
||||
|
||||
[context.production]
|
||||
command = "VITE_HOSTNAME=$URL pnpm build"
|
||||
|
@ -6,7 +6,7 @@
|
||||
.idea
|
||||
.husky
|
||||
.local
|
||||
dist
|
||||
node_modules
|
||||
!docs/.vitepress
|
||||
docs/.vitepress/cache
|
||||
docs/.vitepress/dist/
|
@ -24,6 +24,7 @@ const env = loadEnv("", process.cwd())
|
||||
const hostname: string = env.VITE_HOSTNAME || "http://localhost:4173"
|
||||
|
||||
export default defineConfig({
|
||||
outDir: "../dist",
|
||||
lastUpdated: true,
|
||||
cleanUrls: true,
|
||||
title,
|
||||
|
@ -26,7 +26,7 @@
|
||||
"docs/.**/**/*.tsx",
|
||||
"docs/.**/**/*.vue"
|
||||
],
|
||||
"exclude": ["**/node_modules/**", "**/dist/**"],
|
||||
"exclude": ["**/node_modules/**", "dist/**"],
|
||||
"extensions": [".js", ".ts", ".tsx", ".jsx", ".vue"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }],
|
||||
"allowSyntheticDefaultImports": true
|
||||
|
@ -6,5 +6,5 @@
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"types": ["vite/client"]
|
||||
},
|
||||
"exclude": ["**/node_modules/**", "**/dist/**"]
|
||||
"exclude": ["**/node_modules/**", "dist/**"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user