11import { defineConfig } from 'vitepress'
22
3- // Shared nav/sidebars per locale (aligned with VitePress default theme config pattern)
3+ // Per-locale product item lists
4+ const productItems = {
5+ root : [
6+ { text : '实用工具箱' , link : '/products/quick-utilities-suite' } ,
7+ { text : '屏幕取色器' , link : '/products/quick-colorpicker' } ,
8+ { text : '批量文件复制' , link : '/products/quick-bulkfilecopy' } ,
9+ { text : '批量文件删除' , link : '/products/quick-bulkfiledelete' } ,
10+ { text : '截图翻译' , link : '/products/quick-snaptranslate' } ,
11+ { text : '窗口名侦探' , link : '/products/quick-windowinspector' } ,
12+ { text : '窗口置顶' , link : '/products/quick-alwaysontop' } ,
13+ { text : 'Defender 开关' , link : '/products/quick-defendertoggle' }
14+ ] ,
15+ en : [
16+ { text : 'Quick Utilities Suite' , link : '/products/quick-utilities-suite' } ,
17+ { text : 'Quick ColorPicker' , link : '/products/quick-colorpicker' } ,
18+ { text : 'Quick BulkFileCopy' , link : '/products/quick-bulkfilecopy' } ,
19+ { text : 'Quick BulkFileDelete' , link : '/products/quick-bulkfiledelete' } ,
20+ { text : 'Quick SnapTranslate' , link : '/products/quick-snaptranslate' } ,
21+ { text : 'Quick WindowInspector' , link : '/products/quick-windowinspector' } ,
22+ { text : 'Quick AlwaysOnTop' , link : '/products/quick-alwaysontop' } ,
23+ { text : 'Quick DefenderToggle' , link : '/products/quick-defendertoggle' }
24+ ] ,
25+ 'zh-tw' : [
26+ { text : '實用工具箱' , link : '/products/quick-utilities-suite' } ,
27+ { text : '螢幕取色器' , link : '/products/quick-colorpicker' } ,
28+ { text : '批量檔案複製' , link : '/products/quick-bulkfilecopy' } ,
29+ { text : '批量檔案刪除' , link : '/products/quick-bulkfiledelete' } ,
30+ { text : '截圖翻譯' , link : '/products/quick-snaptranslate' } ,
31+ { text : '視窗名偵探' , link : '/products/quick-windowinspector' } ,
32+ { text : '視窗置頂' , link : '/products/quick-alwaysontop' } ,
33+ { text : 'Defender 開關' , link : '/products/quick-defendertoggle' }
34+ ]
35+ }
36+
437const nav = {
538 root : [
639 { text : '首页' , link : '/' } ,
7- { text : '示例 ' , link : '/markdown-examples' } ,
40+ { text : '产品介绍 ' , items : productItems . root } ,
841 { text : '隐私协议' , link : '/privacy/open-source-license' }
942 ] ,
1043 en : [
1144 { text : 'Home' , link : '/en/' } ,
12- { text : 'Examples ' , link : '/en/markdown-examples' } ,
45+ { text : 'Products ' , items : productItems . en } ,
1346 { text : 'Privacy' , link : '/en/privacy/open-source-license' }
1447 ] ,
1548 'zh-tw' : [
1649 { text : '首頁' , link : '/zh-tw/' } ,
17- { text : '範例 ' , link : '/ zh-tw/markdown-examples' } ,
50+ { text : '產品介紹 ' , items : productItems [ ' zh-tw' ] } ,
1851 { text : '隱私協議' , link : '/zh-tw/privacy/open-source-license' }
1952 ]
2053}
2154
2255const sidebar = {
2356 root : [
2457 {
25- text : '示例' ,
26- items : [
27- { text : 'Markdown 示例' , link : '/markdown-examples' } ,
28- { text : '运行时 API 示例' , link : '/api-examples' }
29- ]
58+ text : '产品介绍' ,
59+ items : productItems . root
3060 } ,
3161 {
3262 text : '隐私协议' ,
@@ -40,11 +70,8 @@ const sidebar = {
4070 ] ,
4171 en : [
4272 {
43- text : 'Examples' ,
44- items : [
45- { text : 'Markdown Examples' , link : '/en/markdown-examples' } ,
46- { text : 'Runtime API Examples' , link : '/en/api-examples' }
47- ]
73+ text : 'Products' ,
74+ items : productItems . en
4875 } ,
4976 {
5077 text : 'Privacy' ,
@@ -58,11 +85,8 @@ const sidebar = {
5885 ] ,
5986 'zh-tw' : [
6087 {
61- text : '範例' ,
62- items : [
63- { text : 'Markdown 範例' , link : '/zh-tw/markdown-examples' } ,
64- { text : '運行時 API 範例' , link : '/zh-tw/api-examples' }
65- ]
88+ text : '產品介紹' ,
89+ items : productItems [ 'zh-tw' ]
6690 } ,
6791 {
6892 text : '隱私協議' ,
0 commit comments