mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +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.
|
- **`website`**: contains all the website related files.
|
||||||
- **`src`**: contains all the markdown files used for the website.
|
- **`src`**: contains all the markdown files used for the website.
|
||||||
- **`.vitepress`**:
|
- **`.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.
|
- **`theme`**: contains custom theme files.
|
||||||
- `config.ts`: main configuration file for VitePress.
|
- `config.ts`: main configuration file for VitePress.
|
||||||
- **`public`**: files to be exposed publicly without any processing.
|
- **`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.
|
- `package.json`: contains information about which plugins are installed in the project.
|
||||||
|
|
||||||
## Images and Videos guidelines
|
## Images and Videos guidelines
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
[build]
|
[build]
|
||||||
base = "website"
|
base = "website"
|
||||||
publish = "src/.vitepress/dist"
|
publish = "dist"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = "VITE_HOSTNAME=$URL pnpm build"
|
command = "VITE_HOSTNAME=$URL pnpm build"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
.idea
|
.idea
|
||||||
.husky
|
.husky
|
||||||
.local
|
.local
|
||||||
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
!docs/.vitepress
|
!docs/.vitepress
|
||||||
docs/.vitepress/cache
|
docs/.vitepress/cache
|
||||||
docs/.vitepress/dist/
|
|
@ -24,6 +24,7 @@ const env = loadEnv("", process.cwd())
|
|||||||
const hostname: string = env.VITE_HOSTNAME || "http://localhost:4173"
|
const hostname: string = env.VITE_HOSTNAME || "http://localhost:4173"
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
outDir: "../dist",
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
cleanUrls: true,
|
cleanUrls: true,
|
||||||
title,
|
title,
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
"docs/.**/**/*.tsx",
|
"docs/.**/**/*.tsx",
|
||||||
"docs/.**/**/*.vue"
|
"docs/.**/**/*.vue"
|
||||||
],
|
],
|
||||||
"exclude": ["**/node_modules/**", "**/dist/**"],
|
"exclude": ["**/node_modules/**", "dist/**"],
|
||||||
"extensions": [".js", ".ts", ".tsx", ".jsx", ".vue"],
|
"extensions": [".js", ".ts", ".tsx", ".jsx", ".vue"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }],
|
"references": [{ "path": "./tsconfig.node.json" }],
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"types": ["vite/client"]
|
"types": ["vite/client"]
|
||||||
},
|
},
|
||||||
"exclude": ["**/node_modules/**", "**/dist/**"]
|
"exclude": ["**/node_modules/**", "dist/**"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user