@@ -11,65 +11,107 @@ export default defineConfig({
1111 [ 'link' , { rel : 'icon' , href : '/DeepTutor/logo.png' } ]
1212 ] ,
1313
14- themeConfig : {
15- logo : '/logo.png' ,
16-
17- nav : [
18- { text : 'Home' , link : '/' } ,
19- { text : 'Guide' , link : '/guide/getting-started' } ,
20- { text : 'Features' , link : '/features/overview' } ,
21- { text : 'Roadmap' , link : '/roadmap' } ,
22- { text : 'Community' , link : '/community/contributing' } ,
23- { text : 'GitHub' , link : 'https://github.com/HKUDS/DeepTutor' }
24- ] ,
25-
26- sidebar : {
27- '/guide/' : [
28- {
29- text : 'Guide' ,
30- items : [
31- { text : 'Getting Started' , link : '/guide/getting-started' } ,
32- { text : 'Configuration' , link : '/guide/configuration' } ,
33- { text : 'Troubleshooting' , link : '/guide/troubleshooting' }
34- ]
35- }
36- ] ,
37- '/features/' : [
38- {
39- text : 'Features' ,
40- items : [
41- { text : 'Overview' , link : '/features/overview' }
42- ]
43- }
44- ] ,
45- '/community/' : [
46- {
47- text : 'Community' ,
48- items : [
49- { text : 'Discussions' , link : '/community/discussions' } ,
50- { text : 'Contributing' , link : '/community/contributing' }
14+ // 国际化配置
15+ locales : {
16+ root : {
17+ label : 'English' ,
18+ lang : 'en' ,
19+ themeConfig : {
20+ nav : [
21+ { text : 'Home' , link : '/' } ,
22+ { text : 'Guide' , link : '/guide/getting-started' } ,
23+ { text : 'Features' , link : '/features/overview' } ,
24+ { text : 'Roadmap' , link : '/roadmap' } ,
25+ { text : 'GitHub' , link : 'https://github.com/HKUDS/DeepTutor' }
26+ ] ,
27+ sidebar : {
28+ '/guide/' : [
29+ {
30+ text : 'Guide' ,
31+ items : [
32+ { text : 'Quick Start' , link : '/guide/getting-started' } ,
33+ { text : 'Configuration' , link : '/guide/configuration' } ,
34+ { text : 'Troubleshooting' , link : '/guide/troubleshooting' }
35+ ]
36+ }
5137 ]
38+ } ,
39+ editLink : {
40+ pattern : 'https://github.com/HKUDS/DeepTutor/edit/main/docs/:path' ,
41+ text : 'Edit this page on GitHub'
42+ } ,
43+ footer : {
44+ message : 'Released under the AGPL-3.0 License.' ,
45+ copyright : '© 2025-2026 Data Intelligence Lab @ HKU'
5246 }
53- ] ,
54- '/roadmap' : [
55- {
56- text : 'Roadmap' ,
57- items : [
58- { text : 'Roadmap' , link : '/roadmap' }
59- ]
60- }
61- ]
47+ }
6248 } ,
49+ zh : {
50+ label : '简体中文' ,
51+ lang : 'zh-CN' ,
52+ link : '/zh/' ,
53+ themeConfig : {
54+ nav : [
55+ { text : '首页' , link : '/zh/' } ,
56+ { text : '指南' , link : '/zh/guide/getting-started' } ,
57+ { text : '功能' , link : '/zh/features/overview' } ,
58+ { text : '路线图' , link : '/zh/roadmap' } ,
59+ { text : 'GitHub' , link : 'https://github.com/HKUDS/DeepTutor' }
60+ ] ,
61+ sidebar : {
62+ '/zh/guide/' : [
63+ {
64+ text : '指南' ,
65+ items : [
66+ { text : '快速开始' , link : '/zh/guide/getting-started' } ,
67+ { text : '配置说明' , link : '/zh/guide/configuration' } ,
68+ { text : '常见问题' , link : '/zh/guide/troubleshooting' }
69+ ]
70+ }
71+ ]
72+ } ,
73+ editLink : {
74+ pattern : 'https://github.com/HKUDS/DeepTutor/edit/main/docs/:path' ,
75+ text : '在 GitHub 上编辑此页'
76+ } ,
77+ footer : {
78+ message : '基于 AGPL-3.0 许可证发布' ,
79+ copyright : '© 2025-2026 香港大学数据智能实验室'
80+ } ,
81+ // 中文界面文本
82+ outline : {
83+ label : '本页目录'
84+ } ,
85+ docFooter : {
86+ prev : '上一篇' ,
87+ next : '下一篇'
88+ } ,
89+ lastUpdated : {
90+ text : '最后更新于'
91+ } ,
92+ darkModeSwitchLabel : '外观' ,
93+ sidebarMenuLabel : '菜单' ,
94+ returnToTopLabel : '返回顶部' ,
95+ langMenuLabel : '切换语言'
96+ }
97+ }
98+ } ,
99+
100+ themeConfig : {
101+ logo : '/logo.png' ,
63102
64103 socialLinks : [
65- { icon : 'github' , link : 'https://github.com/HKUDS/DeepTutor' }
104+ { icon : 'github' , link : 'https://github.com/HKUDS/DeepTutor' } ,
105+ { icon : 'discord' , link : 'https://discord.gg/zpP9cssj' } ,
106+ {
107+ icon : {
108+ svg : '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.32.32 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.49.49 0 0 1 .176-.554C23.048 18.276 24 16.577 24 14.71c0-3.38-3.251-6.136-7.062-5.852zm-2.073 2.703c.536 0 .97.44.97.983a.976.976 0 0 1-.97.983.976.976 0 0 1-.97-.983c0-.542.434-.983.97-.983zm4.146 0c.536 0 .97.44.97.983a.976.976 0 0 1-.97.983.976.976 0 0 1-.97-.983c0-.542.434-.983.97-.983z"/></svg>'
109+ } ,
110+ link : 'https://github.com/HKUDS/DeepTutor/issues/78' ,
111+ ariaLabel : 'WeChat'
112+ }
66113 ] ,
67114
68- footer : {
69- message : 'Released under the AGPL-3.0 License.' ,
70- copyright : 'Copyright © 2025-2026 DeepTutor Team @ HKU'
71- } ,
72-
73115 search : {
74116 provider : 'local'
75117 }
0 commit comments