Skip to content

Commit 18598bf

Browse files
authored
docs: missing basePath (#77)
1 parent 8658072 commit 18598bf

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.dumirc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { defineConfig } from 'dumi';
22

3+
const basePath = process.env.GH_PAGES ? '/input/' : '/';
4+
const publicPath = process.env.GH_PAGES ? '/input/' : '/';
5+
36
export default defineConfig({
47
mfsu: false,
58
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
@@ -8,4 +11,6 @@ export default defineConfig({
811
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
912
},
1013
outputPath: '.doc',
14+
base: basePath,
15+
publicPath,
1116
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"docs:build": "dumi build",
3333
"docs:deploy": "gh-pages -d .doc",
3434
"compile": "father build && lessc assets/index.less assets/index.css",
35-
"gh-pages": "npm run docs:build && npm run docs:deploy",
35+
"gh-pages": "GH_PAGES=1 npm run docs:build && npm run docs:deploy",
3636
"prepublishOnly": "npm run compile && np --yolo --no-publish",
3737
"postpublish": "npm run gh-pages",
3838
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",

0 commit comments

Comments
 (0)