dumi icon indicating copy to clipboard operation
dumi copied to clipboard

分组之后点击「分组导航」后白屏 (404),有啥配置项或简单方案能让其不可点击吗?

Open arleyGuoLei opened this issue 4 years ago • 5 comments

Question

image

Sample Code

通过配置实现了「容器组件」的分组,但是点击「容器组件」后 404

---
group:
  title: 容器组件
  path: ui
  order: 11
---

# Summary <Badge>Hello</Badge>

<code src="code/UI_Summary.jsx" hideActions='["CSB"]'></code>

arleyGuoLei avatar Sep 24 '21 09:09 arleyGuoLei

Hello @arleyGuoLei. In order to facilitate location and troubleshooting, we need you to provide a realistic example. You can create a dumi project by clicking here and provide the GitHub warehouse address and reproduce examples.

你好 @arleyGuoLei, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 dumi 项目并提供 GitHub 仓库地址和重现实例。

github-actions[bot] avatar Sep 24 '21 11:09 github-actions[bot]

https://github.com/arleyGuoLei/dumi-group-404

@PeachScript demo 如上

npm install
npm run docs

然后,点击「容器组件」和「公共组件」都可以复现白屏

arleyGuoLei avatar Sep 27 '21 08:09 arleyGuoLei

看起来是菜单生成和重定向逻辑不支持 htmlSuffix,关闭这个配置是工作的

PeachScript avatar Sep 27 '21 10:09 PeachScript

Hello @arleyGuoLei. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @arleyGuoLei,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

github-actions[bot] avatar Sep 27 '21 10:09 github-actions[bot]

看起来是菜单生成和重定向逻辑不支持 htmlSuffix,关闭这个配置是工作的

嗯,但是我们的文档部署平台,... 对于不是 html 后缀的请求,nginx层又做了一层重定向,真无语了... 其他文档都用的hash路由,一直没发现这些问题

arleyGuoLei avatar Sep 27 '21 10:09 arleyGuoLei