diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index a76481bdc..8a2cb2b41 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -128,9 +128,15 @@ export default defineConfig({ // collapsed: true, items: [ { text: "插件介绍", link: "/plugin/plugin-intro" }, - { text: "插件开发", link: "/plugin/plugin-dev" }, - { text: "组件拓展", link: "/plugin/extension" }, - { text: "API参考", link: "/plugin/api-ref" }, + { + text: "插件开发", + collapsed: true, + items: [ + { text: "基础教程", link: "/plugin/dev/tutor" }, + { text: "组件扩展", link: "/plugin/dev/extension" }, + { text: "API 参考", link: "/plugin/dev/api-ref" }, + ] + }, // { text: "技术信息", link: "/plugin/tech-info" }, ], }, @@ -153,7 +159,8 @@ export default defineConfig({ // ], // }, - { text: "实践", items: [ + { + text: "实践", items: [ { text: "如何在 LangBot 上接入 Dify?", link: "/workshop/dify-integration" }, { text: "如何接入 OneAPI、LinkAI 等第三方 OpenAI 格式接口?", link: "/workshop/one-api" }, ] diff --git a/docs/plugin/api-ref.md b/docs/plugin/dev/api-ref.md similarity index 95% rename from docs/plugin/api-ref.md rename to docs/plugin/dev/api-ref.md index 95ed8b3d2..a476bfb2f 100644 --- a/docs/plugin/api-ref.md +++ b/docs/plugin/dev/api-ref.md @@ -1,5 +1,9 @@ # API 参考 +:::info 目录 +[[toc]] +::: + 以下 API 仅针对 事件插件 可用,组件扩展形式请自行阅读源码。 ## 消息处理 diff --git a/docs/plugin/extension.md b/docs/plugin/dev/extension.md similarity index 96% rename from docs/plugin/extension.md rename to docs/plugin/dev/extension.md index 2865b61fb..0d80fde25 100644 --- a/docs/plugin/extension.md +++ b/docs/plugin/dev/extension.md @@ -1,6 +1,6 @@ # 组件扩展 -> 请先阅读[插件介绍页](./plugin-intro.md) +> 请先阅读[插件介绍页](/plugin/plugin-intro) :::info 目录 [[toc]] diff --git a/docs/plugin/plugin-dev.md b/docs/plugin/dev/tutor.md similarity index 97% rename from docs/plugin/plugin-dev.md rename to docs/plugin/dev/tutor.md index df8a64a63..a7e665952 100644 --- a/docs/plugin/plugin-dev.md +++ b/docs/plugin/dev/tutor.md @@ -1,6 +1,6 @@ -# 插件开发 +# 插件开发教程 -> 请先阅读[插件介绍页](./plugin-intro.md) +> 请先阅读[插件介绍页](/plugin/plugin-intro) > 建议先阅读本项目源码,了解项目架构 > 问题、需求请到仓库issue发起