refactor: 工具使用改为独立 docs 实例,路由从 /docs/tools 迁移到 /tools
- docs/tools 移至 packages/stack-idealjs/tools - 新增 @docusaurus/plugin-content-docs tools 实例与 sidebarsTools.ts - 导航栏"工具使用"指向独立侧边栏 toolsSidebar - 修复 prisma 文档中的旧路径链接 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
43581b238c
commit
80268937ee
35 files changed
+26
-3
No files matched your search
@@ -69,6 +69,20 @@ const config: Config = {
|
||||
],
|
||||
],
|
||||
|
||||
plugins: [
|
||||
[
|
||||
"@docusaurus/plugin-content-docs",
|
||||
{
|
||||
id: "tools",
|
||||
path: "tools",
|
||||
routeBasePath: "tools",
|
||||
sidebarPath: "./sidebarsTools.ts",
|
||||
editUrl:
|
||||
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
// Replace with your project's social card
|
||||
image: "img/docusaurus-social-card.jpg",
|
||||
@@ -86,8 +100,9 @@ const config: Config = {
|
||||
label: "全栈教程",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
docId: "tools/index",
|
||||
type: "docSidebar",
|
||||
sidebarId: "toolsSidebar",
|
||||
docsPluginId: "tools",
|
||||
position: "left",
|
||||
label: "工具使用",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user