Skip to content

Commit 0773c2c

Browse files
committed
fix: 修正霍格沃茨画像导航配置
- 从前端开发部分移除重复的霍格沃茨画像条目 - 将综合项目中的链接从 2.4-hogwarts-portraits 修正为 2.5-hogwarts-portraits - 同步修正 stage-2 和 stage-3 侧边栏配置
1 parent 8c7e5fe commit 0773c2c

1 file changed

Lines changed: 69 additions & 46 deletions

File tree

docs/.vitepress/config.mjs

Lines changed: 69 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,17 +1201,20 @@ Sitemap: ${siteUrl}/sitemap.xml
12011201
{ text: '首页', link: '/zh-cn/' },
12021202
{
12031203
text: '零基础入门',
1204-
link: '/zh-cn/stage-0/'
1204+
link: '/zh-cn/stage-0/',
1205+
activeMatch: '/zh-cn/stage-[01]/'
12051206
},
12061207
{
12071208
text: '初中级开发',
1208-
link: '/zh-cn/stage-2/'
1209+
link: '/zh-cn/stage-2/',
1210+
activeMatch: '/zh-cn/stage-2/'
12091211
},
12101212
{
12111213
text: '高级开发',
1212-
link: '/zh-cn/stage-3/'
1214+
link: '/zh-cn/stage-3/',
1215+
activeMatch: '/zh-cn/stage-3/'
12131216
},
1214-
{ text: '附录', link: '/zh-cn/appendix/index' }
1217+
{ text: '附录', link: '/zh-cn/appendix/index', activeMatch: '/zh-cn/appendix/' }
12151218
],
12161219
sidebar: {
12171220
'/zh-cn/stage-0/': productManagerSidebar,
@@ -1237,10 +1240,6 @@ Sitemap: ${siteUrl}/sitemap.xml
12371240
text: '用 LLM 和 Skills 让界面变好看',
12381241
link: '/zh-cn/stage-2/frontend/2.4-llm-skills-beautiful/'
12391242
},
1240-
{
1241-
text: '霍格沃茨的画像们:SVG 交互动画',
1242-
link: '/zh-cn/stage-2/frontend/2.5-hogwarts-portraits/'
1243-
},
12441243
{
12451244
text: '从设计原型到项目代码',
12461245
link: '/zh-cn/stage-2/frontend/2.6-design-to-code/'
@@ -1297,7 +1296,7 @@ Sitemap: ${siteUrl}/sitemap.xml
12971296
items: [
12981297
{
12991298
text: '一起做霍格沃茨画像',
1300-
link: '/zh-cn/stage-2/frontend/2.4-hogwarts-portraits/'
1299+
link: '/zh-cn/stage-2/frontend/2.5-hogwarts-portraits/'
13011300
},
13021301
{
13031302
text: '构建第一个现代应用程序 - 全栈应用',
@@ -1476,7 +1475,7 @@ Sitemap: ${siteUrl}/sitemap.xml
14761475
items: [
14771476
{
14781477
text: '一起做霍格沃茨画像',
1479-
link: '/zh-cn/stage-2/frontend/2.4-hogwarts-portraits/'
1478+
link: '/zh-cn/stage-2/frontend/2.5-hogwarts-portraits/'
14801479
},
14811480
{
14821481
text: 'Supabase 数据库',
@@ -1995,17 +1994,20 @@ Sitemap: ${siteUrl}/sitemap.xml
19951994
{ text: 'Home', link: '/en/' },
19961995
{
19971996
text: 'Novice & PM',
1998-
link: '/en/stage-0/'
1997+
link: '/en/stage-0/',
1998+
activeMatch: '/en/stage-[01]/'
19991999
},
20002000
{
20012001
text: 'Full-Stack Development',
2002-
link: '/zh-cn/stage-2/'
2002+
link: '/zh-cn/stage-2/',
2003+
activeMatch: '/en/stage-2/'
20032004
},
20042005
{
20052006
text: 'Advanced Development',
2006-
link: '/zh-cn/stage-3/'
2007+
link: '/zh-cn/stage-3/',
2008+
activeMatch: '/en/stage-3/'
20072009
},
2008-
{ text: 'Appendix', link: '/zh-cn/appendix/index' }
2010+
{ text: 'Appendix', link: '/zh-cn/appendix/index', activeMatch: '/en/appendix/' }
20092011
],
20102012
sidebar: {
20112013
'/en/stage-0/': productManagerSidebarEn,
@@ -2046,17 +2048,20 @@ Sitemap: ${siteUrl}/sitemap.xml
20462048
{ text: 'ホーム', link: '/ja-jp/' },
20472049
{
20482050
text: '初心者とPM',
2049-
link: '/zh-cn/stage-0/'
2051+
link: '/zh-cn/stage-0/',
2052+
activeMatch: '/zh-cn/stage-0/'
20502053
},
20512054
{
20522055
text: 'フルスタック開発',
2053-
link: '/zh-cn/stage-2/'
2056+
link: '/zh-cn/stage-2/',
2057+
activeMatch: '/zh-cn/stage-2/'
20542058
},
20552059
{
20562060
text: '上級開発',
2057-
link: '/zh-cn/stage-3/'
2061+
link: '/zh-cn/stage-3/',
2062+
activeMatch: '/zh-cn/stage-3/'
20582063
},
2059-
{ text: '付録', link: '/zh-cn/appendix/' }
2064+
{ text: '付録', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
20602065
],
20612066
// TODO: Add Japanese sidebar when content is ready
20622067
sidebar: {}
@@ -2090,17 +2095,20 @@ Sitemap: ${siteUrl}/sitemap.xml
20902095
{ text: '首頁', link: '/zh-tw/' },
20912096
{
20922097
text: '新手與產品原型',
2093-
link: '/zh-cn/stage-0/'
2098+
link: '/zh-cn/stage-0/',
2099+
activeMatch: '/zh-cn/stage-0/'
20942100
},
20952101
{
20962102
text: '初中級開發',
2097-
link: '/zh-cn/stage-2/'
2103+
link: '/zh-cn/stage-2/',
2104+
activeMatch: '/zh-cn/stage-2/'
20982105
},
20992106
{
21002107
text: '高級開發',
2101-
link: '/zh-cn/stage-3/'
2108+
link: '/zh-cn/stage-3/',
2109+
activeMatch: '/zh-cn/stage-3/'
21022110
},
2103-
{ text: '附錄', link: '/zh-cn/appendix/' }
2111+
{ text: '附錄', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
21042112
],
21052113
sidebar: {}
21062114
}
@@ -2131,16 +2139,18 @@ Sitemap: ${siteUrl}/sitemap.xml
21312139
},
21322140
nav: [
21332141
{ text: '홈', link: '/ko-kr/' },
2134-
{ text: '초보자 & PM', link: '/zh-cn/stage-0/' },
2142+
{ text: '초보자 & PM', link: '/zh-cn/stage-0/', activeMatch: '/zh-cn/stage-0/' },
21352143
{
21362144
text: '풀스택 개발',
2137-
link: '/zh-cn/stage-2/'
2145+
link: '/zh-cn/stage-2/',
2146+
activeMatch: '/zh-cn/stage-2/'
21382147
},
21392148
{
21402149
text: '고급 개발',
2141-
link: '/zh-cn/stage-3/'
2150+
link: '/zh-cn/stage-3/',
2151+
activeMatch: '/zh-cn/stage-3/'
21422152
},
2143-
{ text: '부록', link: '/zh-cn/appendix/' }
2153+
{ text: '부록', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
21442154
],
21452155
sidebar: {}
21462156
}
@@ -2173,17 +2183,20 @@ Sitemap: ${siteUrl}/sitemap.xml
21732183
{ text: 'Inicio', link: '/es-es/' },
21742184
{
21752185
text: 'Principiante y PM',
2176-
link: '/zh-cn/stage-0/'
2186+
link: '/zh-cn/stage-0/',
2187+
activeMatch: '/zh-cn/stage-0/'
21772188
},
21782189
{
21792190
text: 'Desarrollo Full Stack',
2180-
link: '/zh-cn/stage-2/'
2191+
link: '/zh-cn/stage-2/',
2192+
activeMatch: '/zh-cn/stage-2/'
21812193
},
21822194
{
21832195
text: 'Desarrollo Avanzado',
2184-
link: '/zh-cn/stage-3/'
2196+
link: '/zh-cn/stage-3/',
2197+
activeMatch: '/zh-cn/stage-3/'
21852198
},
2186-
{ text: 'Apéndice', link: '/zh-cn/appendix/' }
2199+
{ text: 'Apéndice', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
21872200
],
21882201
sidebar: {}
21892202
}
@@ -2214,16 +2227,18 @@ Sitemap: ${siteUrl}/sitemap.xml
22142227
},
22152228
nav: [
22162229
{ text: 'Accueil', link: '/fr-fr/' },
2217-
{ text: 'Débutant & PM', link: '/zh-cn/stage-0/' },
2230+
{ text: 'Débutant & PM', link: '/zh-cn/stage-0/', activeMatch: '/zh-cn/stage-0/' },
22182231
{
22192232
text: 'Développement Full Stack',
2220-
link: '/zh-cn/stage-2/'
2233+
link: '/zh-cn/stage-2/',
2234+
activeMatch: '/zh-cn/stage-2/'
22212235
},
22222236
{
22232237
text: 'Développement Avancé',
2224-
link: '/zh-cn/stage-3/'
2238+
link: '/zh-cn/stage-3/',
2239+
activeMatch: '/zh-cn/stage-3/'
22252240
},
2226-
{ text: 'Annexe', link: '/zh-cn/appendix/' }
2241+
{ text: 'Annexe', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
22272242
],
22282243
sidebar: {}
22292244
}
@@ -2254,16 +2269,18 @@ Sitemap: ${siteUrl}/sitemap.xml
22542269
},
22552270
nav: [
22562271
{ text: 'Start', link: '/de-de/' },
2257-
{ text: 'Anfänger & PM', link: '/zh-cn/stage-0/' },
2272+
{ text: 'Anfänger & PM', link: '/zh-cn/stage-0/', activeMatch: '/zh-cn/stage-0/' },
22582273
{
22592274
text: 'Full Stack Entwicklung',
2260-
link: '/zh-cn/stage-2/'
2275+
link: '/zh-cn/stage-2/',
2276+
activeMatch: '/zh-cn/stage-2/'
22612277
},
22622278
{
22632279
text: 'Fortgeschrittene Entwicklung',
2264-
link: '/zh-cn/stage-3/'
2280+
link: '/zh-cn/stage-3/',
2281+
activeMatch: '/zh-cn/stage-3/'
22652282
},
2266-
{ text: 'Anhang', link: '/zh-cn/appendix/' }
2283+
{ text: 'Anhang', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
22672284
],
22682285
sidebar: {}
22692286
}
@@ -2296,17 +2313,20 @@ Sitemap: ${siteUrl}/sitemap.xml
22962313
{ text: 'الرئيسية', link: '/ar-sa/' },
22972314
{
22982315
text: 'مبتدأ & PM',
2299-
link: '/zh-cn/stage-0/'
2316+
link: '/zh-cn/stage-0/',
2317+
activeMatch: '/zh-cn/stage-0/'
23002318
},
23012319
{
23022320
text: 'تطوير Full Stack',
2303-
link: '/zh-cn/stage-2/'
2321+
link: '/zh-cn/stage-2/',
2322+
activeMatch: '/zh-cn/stage-2/'
23042323
},
23052324
{
23062325
text: 'تطوير متقدم',
2307-
link: '/zh-cn/stage-3/'
2326+
link: '/zh-cn/stage-3/',
2327+
activeMatch: '/zh-cn/stage-3/'
23082328
},
2309-
{ text: 'ملحق', link: '/zh-cn/appendix/' }
2329+
{ text: 'ملحق', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
23102330
],
23112331
sidebar: {}
23122332
}
@@ -2340,17 +2360,20 @@ Sitemap: ${siteUrl}/sitemap.xml
23402360
{ text: 'Trang chủ', link: '/vi-vn/' },
23412361
{
23422362
text: 'Người mới & PM',
2343-
link: '/zh-cn/stage-0/'
2363+
link: '/zh-cn/stage-0/',
2364+
activeMatch: '/zh-cn/stage-0/'
23442365
},
23452366
{
23462367
text: 'Phát triển Full Stack',
2347-
link: '/zh-cn/stage-2/'
2368+
link: '/zh-cn/stage-2/',
2369+
activeMatch: '/zh-cn/stage-2/'
23482370
},
23492371
{
23502372
text: 'Phát triển Nâng cao',
2351-
link: '/zh-cn/stage-3/'
2373+
link: '/zh-cn/stage-3/',
2374+
activeMatch: '/zh-cn/stage-3/'
23522375
},
2353-
{ text: 'Phụ lục', link: '/zh-cn/appendix/' }
2376+
{ text: 'Phụ lục', link: '/zh-cn/appendix/', activeMatch: '/zh-cn/appendix/' }
23542377
],
23552378
sidebar: {}
23562379
}

0 commit comments

Comments
 (0)