Move "dist" to website root

This commit is contained in:
Soitora 2023-09-10 21:36:00 +02:00
parent b2cb199632
commit ec1a939b2e
No known key found for this signature in database
GPG Key ID: A6D711EB4F2CCD97
6 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -3,7 +3,7 @@
[build]
base = "website"
publish = "src/.vitepress/dist"
publish = "dist"
[context.production]
command = "VITE_HOSTNAME=$URL pnpm build"

View File

@ -6,7 +6,7 @@
.idea
.husky
.local
dist
node_modules
!docs/.vitepress
!docs/.vitepress
docs/.vitepress/cache
docs/.vitepress/dist/

View File

@ -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,

View File

@ -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

View File

@ -6,5 +6,5 @@
"allowSyntheticDefaultImports": true,
"types": ["vite/client"]
},
"exclude": ["**/node_modules/**", "**/dist/**"]
"exclude": ["**/node_modules/**", "dist/**"]
}