@@ -10,60 +10,164 @@ export default defineConfig({
1010 ] ,
1111 themeConfig : {
1212 logo : '/logo.svg' ,
13- nav : [
14- { text : 'Guide' , link : '/guide/getting-started' } ,
15- { text : 'GitHub' , link : 'https://github.com/while-coder/sbot' } ,
13+ socialLinks : [
14+ { icon : 'github' , link : 'https://github.com/while-coder/sbot' } ,
1615 ] ,
17- sidebar : [
18- {
19- text : 'Introduction' ,
20- items : [
21- { text : 'Getting Started' , link : '/guide/getting-started' } ,
22- { text : 'Features' , link : '/guide/features' } ,
23- ] ,
16+ search : {
17+ provider : 'local' ,
18+ options : {
19+ locales : {
20+ zh : {
21+ translations : {
22+ button : {
23+ buttonText : '搜索文档' ,
24+ buttonAriaLabel : '搜索文档' ,
25+ } ,
26+ modal : {
27+ noResultsText : '无法找到相关结果' ,
28+ resetButtonTitle : '清除查询条件' ,
29+ footer : {
30+ selectText : '选择' ,
31+ navigateText : '切换' ,
32+ closeText : '关闭' ,
33+ } ,
34+ } ,
35+ } ,
36+ } ,
37+ } ,
2438 } ,
25- {
26- text : 'Models & Agents' ,
27- items : [
28- { text : 'Models' , link : '/guide/models' } ,
29- { text : 'Agents' , link : '/guide/agents' } ,
30- { text : 'Agent Store' , link : '/guide/agent-store' } ,
39+ } ,
40+ } ,
41+ locales : {
42+ root : {
43+ label : 'English' ,
44+ lang : 'en-US' ,
45+ title : 'sbot' ,
46+ description : 'Self-hosted AI Agent Server' ,
47+ themeConfig : {
48+ nav : [
49+ { text : 'Guide' , link : '/guide/getting-started' } ,
50+ { text : 'GitHub' , link : 'https://github.com/while-coder/sbot' } ,
3151 ] ,
32- } ,
33- {
34- text : 'Storage & Knowledge' ,
35- items : [
36- { text : 'Savers' , link : '/guide/savers' } ,
37- { text : 'Notes (Memory)' , link : '/guide/note' } ,
38- { text : 'Wiki' , link : '/guide/wiki' } ,
39- { text : 'Insight' , link : '/guide/insight' } ,
52+ sidebar : [
53+ {
54+ text : 'Introduction' ,
55+ items : [
56+ { text : 'Getting Started' , link : '/guide/getting-started' } ,
57+ { text : 'Features' , link : '/guide/features' } ,
58+ ] ,
59+ } ,
60+ {
61+ text : 'Models & Agents' ,
62+ items : [
63+ { text : 'Models' , link : '/guide/models' } ,
64+ { text : 'Agents' , link : '/guide/agents' } ,
65+ { text : 'Agent Store' , link : '/guide/agent-store' } ,
66+ ] ,
67+ } ,
68+ {
69+ text : 'Storage & Knowledge' ,
70+ items : [
71+ { text : 'Savers' , link : '/guide/savers' } ,
72+ { text : 'Notes (Memory)' , link : '/guide/note' } ,
73+ { text : 'Wiki' , link : '/guide/wiki' } ,
74+ { text : 'Insight' , link : '/guide/insight' } ,
75+ ] ,
76+ } ,
77+ {
78+ text : 'Tools & Skills' ,
79+ items : [
80+ { text : 'Built-in Tools' , link : '/guide/tools' } ,
81+ { text : 'MCP Tools' , link : '/guide/mcp' } ,
82+ { text : 'Skills' , link : '/guide/skills' } ,
83+ ] ,
84+ } ,
85+ {
86+ text : 'Channels & Runtime' ,
87+ items : [
88+ { text : 'Channels' , link : '/guide/channels' } ,
89+ { text : 'Heartbeat' , link : '/guide/heartbeat' } ,
90+ ] ,
91+ } ,
4092 ] ,
93+ footer : {
94+ message : 'Released under the MIT License.' ,
95+ copyright : 'Copyright © sbot contributors' ,
96+ } ,
4197 } ,
42- {
43- text : 'Tools & Skills' ,
44- items : [
45- { text : 'Built-in Tools' , link : '/guide/tools' } ,
46- { text : 'MCP Tools' , link : '/guide/mcp' } ,
47- { text : 'Skills' , link : '/guide/skills' } ,
98+ } ,
99+ zh : {
100+ label : '简体中文' ,
101+ lang : 'zh-CN' ,
102+ title : 'sbot' ,
103+ description : '自托管 AI Agent 服务' ,
104+ themeConfig : {
105+ nav : [
106+ { text : '指南' , link : '/zh/guide/getting-started' } ,
107+ { text : 'GitHub' , link : 'https://github.com/while-coder/sbot' } ,
48108 ] ,
49- } ,
50- {
51- text : 'Channels & Runtime' ,
52- items : [
53- { text : 'Channels' , link : '/guide/channels' } ,
54- { text : 'Heartbeat' , link : '/guide/heartbeat' } ,
109+ sidebar : [
110+ {
111+ text : '介绍' ,
112+ items : [
113+ { text : '快速开始' , link : '/zh/guide/getting-started' } ,
114+ { text : '核心特性' , link : '/zh/guide/features' } ,
115+ ] ,
116+ } ,
117+ {
118+ text : '模型与 Agent' ,
119+ items : [
120+ { text : '模型' , link : '/zh/guide/models' } ,
121+ { text : 'Agent' , link : '/zh/guide/agents' } ,
122+ { text : 'Agent 商店' , link : '/zh/guide/agent-store' } ,
123+ ] ,
124+ } ,
125+ {
126+ text : '存储与知识' ,
127+ items : [
128+ { text : '存储 (Savers)' , link : '/zh/guide/savers' } ,
129+ { text : '记忆 (Notes)' , link : '/zh/guide/note' } ,
130+ { text : '知识库 (Wiki)' , link : '/zh/guide/wiki' } ,
131+ { text : 'Insight 洞察' , link : '/zh/guide/insight' } ,
132+ ] ,
133+ } ,
134+ {
135+ text : '工具与技能' ,
136+ items : [
137+ { text : '内置工具' , link : '/zh/guide/tools' } ,
138+ { text : 'MCP 工具' , link : '/zh/guide/mcp' } ,
139+ { text : '技能' , link : '/zh/guide/skills' } ,
140+ ] ,
141+ } ,
142+ {
143+ text : '渠道与运行时' ,
144+ items : [
145+ { text : '渠道' , link : '/zh/guide/channels' } ,
146+ { text : '心跳唤醒' , link : '/zh/guide/heartbeat' } ,
147+ ] ,
148+ } ,
55149 ] ,
150+ docFooter : {
151+ prev : '上一页' ,
152+ next : '下一页' ,
153+ } ,
154+ outline : {
155+ label : '本页目录' ,
156+ } ,
157+ lastUpdated : {
158+ text : '最后更新于' ,
159+ } ,
160+ darkModeSwitchLabel : '主题' ,
161+ lightModeSwitchTitle : '切换到浅色模式' ,
162+ darkModeSwitchTitle : '切换到深色模式' ,
163+ sidebarMenuLabel : '菜单' ,
164+ returnToTopLabel : '回到顶部' ,
165+ langMenuLabel : '切换语言' ,
166+ footer : {
167+ message : '基于 MIT 许可证发布。' ,
168+ copyright : 'Copyright © sbot contributors' ,
169+ } ,
56170 } ,
57- ] ,
58- socialLinks : [
59- { icon : 'github' , link : 'https://github.com/while-coder/sbot' } ,
60- ] ,
61- footer : {
62- message : 'Released under the MIT License.' ,
63- copyright : 'Copyright © sbot contributors' ,
64- } ,
65- search : {
66- provider : 'local' ,
67171 } ,
68172 } ,
69173} )
0 commit comments