Skip to content

Commit 804836f

Browse files
authored
docs: improve deployment guide in faq (#1848)
* docs: add content to the deployment document * docs: The white of Pangu
1 parent 39cd519 commit 804836f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/faq.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ yarn add gh-pages -D
104104
}
105105
```
106106

107+
> 同样的,如果是 react 文档,使用 `gh-pages -d docs-dist`命令即可。
108+
107109
编译生成 `dist` 目录
108110

109111
```bash
@@ -156,6 +158,8 @@ jobs:
156158
publish_dir: ./dist
157159
```
158160
161+
> 如果 actions 部署时遇到 403 错误,可以尝试使用 [Deploy Token](https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-ssh-private-key-deploy_key)
162+
159163
## dumi 如何支持对 Swift、C#、Kotlin 等语言的语法高亮?
160164
161165
dumi 语法高亮使用的 [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) ,是一款基于 [PrismJS](https://github.com/PrismJS/prism) 实现的 React 组件。 `PrismJS` 支持的语言种类很多,但 `prism-react-renderer` 在实现的时候对部分语言进行了移除,其具体原因可以查看 [Adding Out of the Box Languages](https://github.com/FormidableLabs/prism-react-renderer/issues/53#issuecomment-546653848)。

0 commit comments

Comments
 (0)