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. - **`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

View File

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

View File

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

View File

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

View File

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

View File

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