From d0510e0c920c76ae2d796915e07caca80d1fe1dc Mon Sep 17 00:00:00 2001 From: mangmang <362165265@qq.com> Date: Fri, 6 Mar 2026 03:07:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(docs):=20=E6=B7=BB=E5=8A=A0AI=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=8F=8A=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在导航栏配置中新增AI入口,图标为机器人 - 在侧边栏添加AI相关文档分组OpenCode,包含opencode-cli和opencode-tui - 添加ChatGPT、OpenClaw、iFlow等AI工具文档链接 - 配置简化主页侧边栏显示,关闭默认侧边栏显示 --- src/.vuepress/navbar.ts | 7 ++++++- src/.vuepress/sidebar.ts | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/.vuepress/navbar.ts b/src/.vuepress/navbar.ts index 35a4c70..960be0c 100644 --- a/src/.vuepress/navbar.ts +++ b/src/.vuepress/navbar.ts @@ -1,4 +1,4 @@ -import { navbar } from "vuepress-theme-hope"; +import {navbar} from "vuepress-theme-hope"; export default navbar([ "/", @@ -22,4 +22,9 @@ export default navbar([ icon: "mdi:toolbox", link: "/tools/", }, + { + text: "AI", + icon: "mdi:robot-outline", + link: "/ai/", + }, ]); diff --git a/src/.vuepress/sidebar.ts b/src/.vuepress/sidebar.ts index b491dc2..ba2ba2e 100644 --- a/src/.vuepress/sidebar.ts +++ b/src/.vuepress/sidebar.ts @@ -231,5 +231,25 @@ export default sidebar({ ], }, ], + "/ai/": [ + { + text: "OpenCode", + icon: "mdi:application-braces-outline", + collapsible: true, + children: [ + { + text: "opencode-cli", + link: "opencode.md", + }, + { + text: "opencode-tui", + link: "opencode-tui.md", + }, + ], + }, + "chatgpt.md", + "openclaw.md", + "iflow.md", + ], "/": false, });