diff --git a/.dumirc.ts b/.dumirc.ts index 6c01fe2..bee8cc8 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -11,4 +11,5 @@ export default defineConfig({ name: '@rc-component/async-validator', logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', }, + outputPath: '.docs-dist', }); diff --git a/.gitignore b/.gitignore index 80658ec..a7ef0a9 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,5 @@ coverage # dumi .dumi/tmp .dumi/tmp-production -dist \ No newline at end of file +dist +.docs-dist \ No newline at end of file diff --git a/package.json b/package.json index 2795a4c..dbc34bb 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "scripts": { "compile": "father build", "docs:build": "dumi build", - "docs:deploy": "gh-pages -d docs-dist", - "gh-pages": "npm run docs:build && father doc deploy", + "docs:deploy": "gh-pages -d .docs-dist", + "gh-pages": "npm run docs:build && npm run docs:deploy", "lint": "eslint src --ext .tsx,.ts,.jsx,.js", "now-build": "npm run docs:build", "prepublishOnly": "npm run compile && np --yolo --no-publish",