From 330c24b7a5e22ad3d31c7b1c070c18a0b8c15d67 Mon Sep 17 00:00:00 2001 From: xiefengnian Date: Tue, 22 Aug 2023 15:15:40 +0800 Subject: [PATCH 1/2] docs: add content to the deployment document --- docs/guide/faq.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/faq.md b/docs/guide/faq.md index 742b2f84f5..5e4d84f89e 100644 --- a/docs/guide/faq.md +++ b/docs/guide/faq.md @@ -104,6 +104,8 @@ yarn add gh-pages -D } ``` +> 同样的,如果是 react 文档,使用 `gh-pages -d docs-dist`命令即可。 + 编译生成 `dist` 目录 ```bash @@ -156,6 +158,8 @@ jobs: publish_dir: ./dist ``` +> 如果 actions 部署时遇到403错误,可以尝试使用 [Deploy Token](https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-ssh-private-key-deploy_key) + ## dumi 如何支持对 Swift、C#、Kotlin 等语言的语法高亮? 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)。 From f3d3d6a05e7131f49c03fdcb24ac8d9b2de4d72d Mon Sep 17 00:00:00 2001 From: xiefengnian Date: Wed, 23 Aug 2023 13:33:43 +0800 Subject: [PATCH 2/2] docs: The white of Pangu --- docs/guide/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/faq.md b/docs/guide/faq.md index 5e4d84f89e..1eeba42738 100644 --- a/docs/guide/faq.md +++ b/docs/guide/faq.md @@ -158,7 +158,7 @@ jobs: publish_dir: ./dist ``` -> 如果 actions 部署时遇到403错误,可以尝试使用 [Deploy Token](https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-ssh-private-key-deploy_key) +> 如果 actions 部署时遇到 403 错误,可以尝试使用 [Deploy Token](https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-ssh-private-key-deploy_key) ## dumi 如何支持对 Swift、C#、Kotlin 等语言的语法高亮?