diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1d6d75f3..7b7f5212 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/netlify.toml b/netlify.toml index 9ed15c18..4f846558 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ [build] base = "website" - publish = "src/.vitepress/dist" + publish = "dist" [context.production] command = "VITE_HOSTNAME=$URL pnpm build" diff --git a/website/.eslintignore b/website/.eslintignore index 6d989f1f..195967b8 100644 --- a/website/.eslintignore +++ b/website/.eslintignore @@ -6,7 +6,7 @@ .idea .husky .local +dist node_modules -!docs/.vitepress +!docs/.vitepress docs/.vitepress/cache -docs/.vitepress/dist/ \ No newline at end of file diff --git a/website/src/.vitepress/config.ts b/website/src/.vitepress/config.ts index 23901b34..226d1bc4 100644 --- a/website/src/.vitepress/config.ts +++ b/website/src/.vitepress/config.ts @@ -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, diff --git a/website/tsconfig.json b/website/tsconfig.json index b238c9ab..f70b4dca 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -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 diff --git a/website/tsconfig.node.json b/website/tsconfig.node.json index c4855012..840fafbb 100644 --- a/website/tsconfig.node.json +++ b/website/tsconfig.node.json @@ -6,5 +6,5 @@ "allowSyntheticDefaultImports": true, "types": ["vite/client"] }, - "exclude": ["**/node_modules/**", "**/dist/**"] + "exclude": ["**/node_modules/**", "dist/**"] }