Skip to content

Commit

Permalink
docs: missing basePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Muzzle886 committed Aug 14, 2024
1 parent 8658072 commit 7da4043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { defineConfig } from 'dumi';

const basePath = process.env.GH_PAGES ? '/input/' : '/';
const publicPath = process.env.GH_PAGES ? '/input/' : '/';

export default defineConfig({
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
Expand All @@ -8,4 +11,6 @@ export default defineConfig({
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
outputPath: '.doc',
base: basePath,
publicPath,
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"docs:build": "dumi build",
"docs:deploy": "gh-pages -d .doc",
"compile": "father build && lessc assets/index.less assets/index.css",
"gh-pages": "npm run docs:build && npm run docs:deploy",
"gh-pages": "GH_PAGES=1 npm run docs:build && npm run docs:deploy",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"postpublish": "npm run gh-pages",
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
Expand Down

0 comments on commit 7da4043

Please sign in to comment.