File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
161165dumi 语法高亮使用的 [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)。
You can’t perform that action at this time.
0 commit comments