1+ import { defineConfig , type DefaultTheme } from "vitepress" ;
2+
3+ export const sidebar : DefaultTheme . Config [ 'sidebar' ] = [
4+ {
5+ text : "简介" ,
6+ items : [
7+ { text : "什么是 AstrBot" , link : "/what-is-astrbot" } ,
8+ { text : "社区" , link : "/community" } ,
9+ { text : "常见问题" , link : "/faq" } ,
10+ ] ,
11+ } ,
12+ {
13+ text : "开源之夏" ,
14+ base : "/ospp" ,
15+ collapsed : false ,
16+ items : [
17+ { text : "OSPP 2025" , link : "/2025" } ,
18+ ] ,
19+ } ,
20+ {
21+ text : "部署" ,
22+ base : "/deploy" ,
23+ collapsed : false ,
24+ items : deploy ( )
25+ } ,
26+ {
27+ text : "配置" ,
28+ base : "/config" ,
29+ collapsed : false ,
30+ items : config ( )
31+ } ,
32+ {
33+ text : "使用" ,
34+ base : "/use" ,
35+ collapsed : false ,
36+ items : use ( ) ,
37+ } ,
38+ {
39+ text : "开发" ,
40+ base : "/dev" ,
41+ collapsed : false ,
42+ items : [
43+ {
44+ text : "核心代码解释" ,
45+ base : "/dev/core" ,
46+ collapsed : true ,
47+ items : [
48+ { text : "整体架构" , link : "/overall_architecture" } ,
49+ { text : "运行流程" , link : "/overall_operation_process" } ,
50+ ] ,
51+ } ,
52+ {
53+ text : "插件开发" ,
54+ base : "/dev/star" ,
55+ collapsed : true ,
56+ items : dev_star ( )
57+ } ,
58+ {
59+ text : "接入平台适配器" ,
60+ link : "/plugin-platform-adapter" ,
61+ } ,
62+ ] ,
63+ } ,
64+ {
65+ text : "其他" ,
66+ base : "/others" ,
67+ collapsed : false ,
68+ items : [
69+ {
70+ text : "配置文件-大语言模型提供商" ,
71+ link : "/provider" ,
72+ } ,
73+ {
74+ text : "配置文件-消息平台适配器" ,
75+ link : "/platform" ,
76+ } ,
77+ {
78+ text : "自部署文转图" ,
79+ link : "/self-host-t2i" ,
80+ } ,
81+ {
82+ text : "插件下载不了?试试自建 GitHub 加速服务" ,
83+ link : "/github-proxy" ,
84+ } ,
85+ ] ,
86+ } ,
87+ ] ;
88+
89+ function deploy ( ) : DefaultTheme . SidebarItem [ ] {
90+ return [
91+ {
92+ text : "部署 AstrBot" ,
93+ base : "/deploy/astrbot" ,
94+ collapsed : true ,
95+ items : [
96+ { text : "🦈 Docker 部署" , link : "/docker" } ,
97+ { text : "☁️ 雨云一键云部署(NEW)" , link : "/rainyun" } ,
98+ { text : "💻 Windows 一键部署" , link : "/windows" } ,
99+ { text : "👍 手动部署" , link : "/cli" } ,
100+ { text : "😁 宝塔面板部署" , link : "/btpanel" } ,
101+ { text : "😊 CasaOS 部署" , link : "/casaos" } ,
102+ { text : "😌 社区提供的部署脚本" , link : "/linux-one" } ,
103+ ] ,
104+ } ,
105+ {
106+ text : "部署消息平台(协议端)" ,
107+ base : "/deploy/platform" ,
108+ collapsed : true ,
109+ items : [
110+ {
111+ text : "QQ 官方接口" ,
112+ base : "/deploy/platform/qqofficial" ,
113+ collapsed : true ,
114+ items : [
115+ { text : "Webhook 方式" , link : "/webhook" } ,
116+ { text : "Websockets 方式" , link : "/websockets" } ,
117+ ] ,
118+ } ,
119+ {
120+ text : "QQ 个人号" ,
121+ base : "/deploy/platform/aiocqhttp" ,
122+ collapsed : true ,
123+ items : [
124+ { text : "使用 NapCat" , link : "/napcat" } ,
125+ { text : "使用 Lagrange" , link : "/lagrange" } ,
126+ { text : "使用其他端" , link : "/others" } ,
127+ ] ,
128+ } ,
129+ { text : "企业微信" , link : "/wecom" } ,
130+ { text : "微信公众平台" , link : "/weixin-official-account" } ,
131+ {
132+ text : "微信个人号" ,
133+ base : "/deploy/platform/wechat" ,
134+ collapsed : true ,
135+ items : [
136+ { text : "使用 WeChatPadPro" , link : "/wechatpadpro" } ,
137+ { text : "使用 Gewechat [失效]" , link : "/gewechat" } ,
138+ ] ,
139+ } ,
140+ { text : "飞书" , link : "/lark" } ,
141+ { text : "钉钉" , link : "/dingtalk" } ,
142+ { text : "Telegram" , link : "/telegram" } ,
143+ { text : "Slack" , link : "/slack" } ,
144+ { text : "Discord" , link : "/discord" } ,
145+ { text : "KOOK" , link : "/kook" } ,
146+ { text : "VoceChat" , link : "/vocechat" } ,
147+ ] ,
148+ } ,
149+ {
150+ text : "部署好后..." ,
151+ link : "/when-deployed" ,
152+ } ,
153+ ]
154+ }
155+
156+ function config ( ) : DefaultTheme . SidebarItem [ ] {
157+ return [
158+ {
159+ text : "接入大模型服务" ,
160+ base : "/config/providers" ,
161+ collapsed : true ,
162+ items : [
163+ { text : "接入 302.AI 模型服务" , link : "/302ai" } ,
164+ { text : "接入 PPIO 派欧云模型服务" , link : "/ppio" } ,
165+ { text : "接入 OpenAI、DeepSeek 等各种模型" , link : "/llm" } ,
166+ {
167+ text : "接入 Dify" ,
168+ link : "/dify" ,
169+ } ,
170+ {
171+ text : "接入 阿里云百炼应用" ,
172+ link : "/dashscope" ,
173+ } ,
174+ {
175+ text : "接入 Ollama 使用 DeepSeek-R1 等模型" ,
176+ link : "/provider-ollama" ,
177+ } ,
178+ {
179+ text : "接入 LMStudio 使用 DeepSeek-R1 等模型" ,
180+ link : "/provider-lmstudio" ,
181+ } ,
182+ {
183+ text : "接入 OneAPI" ,
184+ link : "/oneapi" ,
185+ } ,
186+ ] ,
187+ } ,
188+ {
189+ text : "AstrBot 配置文件" ,
190+ link : "/astrbot-config" ,
191+ } ,
192+ {
193+ text : "自定义温度等模型参数" ,
194+ link : "/model-config" ,
195+ } ,
196+ ]
197+ }
198+
199+ function use ( ) :DefaultTheme . SidebarItem [ ] {
200+ return [
201+ {
202+ text : "管理面板" ,
203+ link : "/webui" ,
204+ } ,
205+ {
206+ text : "AstrBot Star(插件)" ,
207+ link : "/plugin" ,
208+ } ,
209+ {
210+ text : "内置指令" ,
211+ link : "/command" ,
212+ } ,
213+ {
214+ text : "函数调用" ,
215+ link : "/function-calling" ,
216+ } ,
217+ {
218+ text : "MCP" ,
219+ link : "/mcp" ,
220+ } ,
221+ {
222+ text : "网页搜索" ,
223+ link : "/websearch" ,
224+ } ,
225+ {
226+ text : "知识库" ,
227+ link : "/knowledge-base" ,
228+ } ,
229+ {
230+ text : "沙箱化代码执行器(beta)" ,
231+ link : "/code-interpreter" ,
232+ } ,
233+ {
234+ text : "配置 Whisper 语音转文字" ,
235+ link : "/whisper" ,
236+ } ,
237+ {
238+ text : "配置文字转语音(TTS)" ,
239+ link : "/tts" ,
240+ } ,
241+ {
242+ text : "更新管理面板" ,
243+ link : "/update-webui" ,
244+ } ,
245+ ]
246+ }
247+
248+ function dev_star ( ) :DefaultTheme . SidebarItem [ ] {
249+ return [
250+ { text : "插件基础开发" , link : "/plugin" } ,
251+ { text : "插件数据目录" , link : "/all_resources" } ,
252+ {
253+ text : "插件开发数据" ,
254+ base : "/dev/star/resources" ,
255+ collapsed : true ,
256+ items : [
257+ { text : "AstrMessageEvent" , link : "/astr_message_event" } ,
258+ { text : "AstrBotMessage" , link : "/astrbot_message" } ,
259+ { text : "MessageType" , link : "/message_type" } ,
260+ { text : "MessageMember" , link : "/message_member" } ,
261+ { text : "Context" , link : "/context" } ,
262+ { text : "Star" , link : "/star" } ,
263+ { text : "StarMetadata" , link : "/star_metadata" } ,
264+ { text : "PlatformMetadata" , link : "/platform_metadata" } ,
265+ ] ,
266+ } ,
267+ ]
268+ }
0 commit comments