From 964f6bd8324d459cc046603b04be620b8d5c5445 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sun, 17 Nov 2024 00:33:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=8F=92=E4=BB=B6=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 15 +++++++++++---- docs/plugin/{ => dev}/api-ref.md | 4 ++++ docs/plugin/{ => dev}/extension.md | 2 +- docs/plugin/{plugin-dev.md => dev/tutor.md} | 4 ++-- 4 files changed, 18 insertions(+), 7 deletions(-) rename docs/plugin/{ => dev}/api-ref.md (95%) rename docs/plugin/{ => dev}/extension.md (96%) rename docs/plugin/{plugin-dev.md => dev/tutor.md} (97%) 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发起