Skip to content

Commit

Permalink
build: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Sep 14, 2024
1 parent a4c2088 commit 6d62d66
Show file tree
Hide file tree
Showing 4 changed files with 484 additions and 483 deletions.
1 change: 1 addition & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const config: Config = {
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: BASE_URL,
trailingSlash: true,

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down
4 changes: 2 additions & 2 deletions docusaurus/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ if (!baseUrl.endsWith('/')) baseUrl += '/';
/**
* Read the environment variable `DOCS_BASE_URL` and set the `BASE_URL` accordingly
*
* Set the /<baseUrl>/ pathname under which your site is served
* For GitHub pages deployment, it is often '/<projectName>/'
* Set the `/<baseUrl>/` pathname under which your site is served
* For GitHub pages deployment, it is often `'/<projectName>/'`
*/
export const BASE_URL = baseUrl;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@types/download": "^8.0.5",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/node": "^22.5.4",
"@types/node": "^22.5.5",
"@types/react": "^18.3.5",
"chalk-template": "^1.1.0",
"download": "^8.0.0",
Expand Down
Loading

0 comments on commit 6d62d66

Please sign in to comment.