在我的 Docusaurus 项目中,我的内部链接在我的本地环境中工作,但是当我推送到 GitLab 时,它们不再工作。它没有将原始文档标题替换为新标题,而是将其添加到最后的 url(' https://username.io/test-site/docs/overview/add-a-category.html ')。我查看了我的配置文件,但我不明白为什么会这样。
我尝试更新页面前面的 id,并确保它与 sidebars.json 文件中的 id 匹配。我还添加了 customDocsPath 并在配置文件中将其设置为“docs/”,尽管这应该是默认设置。
---
id: "process-designer-overview"
title: "Process Designer Overview"
sidebar_label: "Overview"
---
# Process Designer
The Process Designer is a collaborative business process modeling and
design workspace for the business processes, scenarios, roles and tasks
that make up governed data processes.
Use the Process Designer to:
- [Add a Category](add-a-category.html)
- [Add a Process or Scenario](Add%20a%20Process%20or%20Scenario.html)
- [Edit a Process or Scenario](Edit%20a%20Process%20or%20Scenario.html)
我将括号中的添加类别链接更新为 md 扩展名,但这破坏了我本地的链接,它仍然无法在 GitLab 上运行。我希望当用户单击链接时,它将用新的文档标题(' https://username.gitlab.io/docs/add-a-category.html ')替换 url 中的文档标题它只是将它附加到最后(' https://username.gitlab.io/docs/process-designer-overview/add-a-category.html '),因此链接已断开,因为那不是文档所在的位置位于。