Skip to content

Commit 814bed7

Browse files
committed
docs: update website
1 parent 1074cf2 commit 814bed7

17 files changed

Lines changed: 1058 additions & 867 deletions

docs/.vitepress/config.mts

Lines changed: 94 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

docs/.vitepress/theme/custom.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/* Roadmap 导航标签特殊样式 - 更显眼 & 独立 */
2+
.VPNavBarMenuLink[href="/DeepTutor/roadmap"],
3+
.VPNavScreenMenuLink[href="/DeepTutor/roadmap"] {
4+
position: relative;
5+
color: white !important;
6+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
7+
padding: 6px 16px !important; /* 稍微加宽 padding */
8+
border-radius: 20px;
9+
font-weight: 700 !important;
10+
margin-left: 24px !important; /* 增加左侧间距,制造独立感 */
11+
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
12+
box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.2), 0 2px 4px -1px rgba(102, 126, 234, 0.1);
13+
letter-spacing: 0.5px;
14+
}
15+
16+
/* 强制覆盖可能的默认样式 */
17+
.VPNavBarMenuLink[href="/DeepTutor/roadmap"]:hover,
18+
.VPNavScreenMenuLink[href="/DeepTutor/roadmap"]:hover {
19+
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
20+
transform: translateY(-2px);
21+
box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3), 0 4px 6px -2px rgba(102, 126, 234, 0.1);
22+
}
23+
24+
.VPNavBarMenuLink[href="/DeepTutor/roadmap"]::before,
25+
.VPNavScreenMenuLink[href="/DeepTutor/roadmap"]::before {
26+
content: '🚀';
27+
margin-right: 6px;
28+
font-size: 1.1em;
29+
vertical-align: -1px;
30+
}
31+
32+
/* 活跃状态 */
33+
.VPNavBarMenuLink[href="/DeepTutor/roadmap"].active,
34+
.VPNavBarMenuLink[href="/DeepTutor/roadmap"].VPLink--active {
35+
background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%) !important; /* 深紫色 */
36+
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
37+
}
38+
39+
/* 移动端样式优化 */
40+
@media (max-width: 768px) {
41+
.VPNavScreenMenuLink[href="/DeepTutor/roadmap"] {
42+
display: inline-flex;
43+
align-items: center;
44+
margin: 12px 0 12px 12px;
45+
width: auto;
46+
}
47+
}

docs/.vitepress/theme/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import DefaultTheme from 'vitepress/theme'
2+
import './custom.css'
3+
4+
export default DefaultTheme

docs/community/contributing.md

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)