Skip to content

Commit 8bae16a

Browse files
hot fix sidebar
1 parent 88f54e6 commit 8bae16a

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

changelogs/v0.6.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
- 重做 `OnlineCompilerDemo` 在线编译演示
6060
- 引入 shiki 语法高亮、新增 build-info 注入
6161
- 配套移动端阅读修复与整体样式调整
62+
- 优化了一下顶部栏,嗯,看着不拥挤了!
6263

6364
## 学习路线图重写
6465

site/.vitepress/config/nav.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { DefaultTheme } from 'vitepress'
22

33
export const navZh: DefaultTheme.NavItem[] = [
4-
{ text: '首页', link: '/' },
54
{
65
text: '基础与特性',
76
items: [
@@ -35,14 +34,18 @@ export const navZh: DefaultTheme.NavItem[] = [
3534
],
3635
},
3736
{ text: '参考', link: '/cpp-reference/' },
38-
{ text: '附录', link: '/appendix/' },
3937
{ text: '社区', link: '/community/' },
40-
{ text: '路线图', link: '/roadmap/' },
41-
{ text: '贡献者', link: '/team/' },
38+
{
39+
text: '更多',
40+
items: [
41+
{ text: '附录', link: '/appendix/' },
42+
{ text: '路线图', link: '/roadmap/' },
43+
{ text: '贡献者', link: '/team/' },
44+
],
45+
},
4246
]
4347

4448
export const navEn: DefaultTheme.NavItem[] = [
45-
{ text: 'Home', link: '/en/' },
4649
{
4750
text: 'Fundamentals',
4851
items: [
@@ -76,8 +79,13 @@ export const navEn: DefaultTheme.NavItem[] = [
7679
],
7780
},
7881
{ text: 'Reference', link: '/en/cpp-reference/' },
79-
{ text: 'Appendix', link: '/en/appendix/' },
8082
{ text: 'Community', link: '/en/community/' },
81-
{ text: 'Roadmap', link: '/en/roadmap/' },
82-
{ text: 'Team', link: '/en/team/' },
83+
{
84+
text: 'More',
85+
items: [
86+
{ text: 'Appendix', link: '/en/appendix/' },
87+
{ text: 'Roadmap', link: '/en/roadmap/' },
88+
{ text: 'Team', link: '/en/team/' },
89+
],
90+
},
8391
]

0 commit comments

Comments
 (0)