Skip to content

Commit

Permalink
docs: update doc build command (#992)
Browse files Browse the repository at this point in the history
* fix: update build command in docs

* fix: distinguish between scaffold for components and scaffold for static site
  • Loading branch information
headwindz committed Jan 7, 2022
1 parent 034f774 commit 4c76f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/index.md
Expand Up @@ -77,4 +77,4 @@ Execute `npm run dev` or `npx dumi dev` to start debugging components or writing

### Build and deploy

Execute `npm run build` or `npx dumi build` to build our documentation site. The build product will be output to the `dist` directory by default. We can deploy the `dist` directory to now.sh, GitHub Pages, etc. On a static site hosting platform or a certain server.
Execute `npm run docs:build` (scaffold for components) / `npm run build`(scaffold for static site), or `npx dumi build` to build our documentation site. The build product will be output to the `dist` directory by default. We can deploy the `dist` directory to now.sh, GitHub Pages, etc. On a static site hosting platform or a certain server.
2 changes: 1 addition & 1 deletion docs/guide/index.zh-CN.md
Expand Up @@ -77,4 +77,4 @@ $ yarn create @umijs/dumi-app

### 构建及部署

执行 `npm run build``npx dumi build` 即可对我们的文档站点做构建,构建产物默认会输出到 `dist` 目录下,我们可以将 `dist` 目录部署在 now.sh、GitHub Pages 等静态站点托管平台或者某台服务器上。
执行 `npm run docs:build` (组件开发脚手架) / `npm run build`(静态站点脚手架),`npx dumi build` 即可对我们的文档站点做构建,构建产物默认会输出到 `dist` 目录下,我们可以将 `dist` 目录部署在 now.sh、GitHub Pages 等静态站点托管平台或者某台服务器上。

0 comments on commit 4c76f42

Please sign in to comment.