|
1 |
| -import {LocaleSpecificConfig, DefaultTheme} from "vitepress" |
| 1 | +import {LocaleSpecificConfig, DefaultTheme} from 'vitepress' |
2 | 2 | import {demoUrl, editLinkPattern} from './common'
|
3 | 3 |
|
4 | 4 | export const zhCNConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
|
5 |
| - themeConfig: { |
6 |
| - nav: [ |
7 |
| - {text: '首页', link: '/zh_CN/'}, |
8 |
| - {text: '手册', link: '/zh_CN/guide/about'}, |
9 |
| - {text: '演示', link: demoUrl} |
10 |
| - ], |
| 5 | + themeConfig: { |
| 6 | + nav: [ |
| 7 | + {text: '首页', link: '/zh_CN/'}, |
| 8 | + {text: '手册', link: '/zh_CN/guide/about'}, |
| 9 | + {text: '演示', link: demoUrl} |
| 10 | + ], |
11 | 11 |
|
12 |
| - editLink: { |
13 |
| - text: '编辑此页', |
14 |
| - pattern: editLinkPattern |
15 |
| - }, |
| 12 | + editLink: { |
| 13 | + text: '编辑此页', |
| 14 | + pattern: editLinkPattern |
| 15 | + }, |
16 | 16 |
|
17 |
| - sidebar: { |
18 |
| - '/zh_CN/guide/': [ |
19 |
| - { |
20 |
| - text: '介绍', |
21 |
| - collapsed: false, |
22 |
| - items: [ |
23 |
| - {text: '何为 Nginx UI?', link: '/zh_CN/guide/about'}, |
24 |
| - {text: '即刻开始', link: '/zh_CN/guide/getting-started'}, |
25 |
| - {text: '安装脚本', link: '/zh_CN/guide/install-script-linux'} |
26 |
| - ] |
27 |
| - }, |
28 |
| - { |
29 |
| - text: '开发', |
30 |
| - collapsed: false, |
31 |
| - items: [ |
32 |
| - {text: '构建', link: '/zh_CN/guide/build'}, |
33 |
| - {text: '项目结构', link: '/zh_CN/guide/project-structure'}, |
34 |
| - {text: '配置模板', link: '/zh_CN/guide/nginx-ui-template'}, |
35 |
| - {text: '贡献代码', link: '/zh_CN/guide/contributing'} |
36 |
| - ] |
37 |
| - }, |
38 |
| - { |
39 |
| - text: '配置', |
40 |
| - collapsed: false, |
41 |
| - items: [ |
42 |
| - {text: '服务端', link: '/zh_CN/guide/config-server'}, |
43 |
| - {text: 'Nginx 日志', link: '/zh_CN/guide/config-nginx-log'}, |
44 |
| - {text: 'Open AI', link: '/zh_CN/guide/config-openai'} |
45 |
| - ] |
46 |
| - }, |
47 |
| - { |
48 |
| - text: '附录', |
49 |
| - collapsed: false, |
50 |
| - items: [ |
51 |
| - {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'}, |
52 |
| - {text: '开源协议', link: '/zh_CN/guide/license'} |
53 |
| - ] |
54 |
| - } |
55 |
| - ] |
| 17 | + sidebar: { |
| 18 | + '/zh_CN/guide/': [ |
| 19 | + { |
| 20 | + text: '介绍', |
| 21 | + collapsed: false, |
| 22 | + items: [ |
| 23 | + {text: '何为 Nginx UI?', link: '/zh_CN/guide/about'}, |
| 24 | + {text: '即刻开始', link: '/zh_CN/guide/getting-started'}, |
| 25 | + {text: '安装脚本', link: '/zh_CN/guide/install-script-linux'} |
| 26 | + ] |
56 | 27 | },
|
57 |
| - |
58 |
| - docFooter: { |
59 |
| - prev: '上一页', |
60 |
| - next: '下一页', |
| 28 | + { |
| 29 | + text: '开发', |
| 30 | + collapsed: false, |
| 31 | + items: [ |
| 32 | + {text: '构建', link: '/zh_CN/guide/build'}, |
| 33 | + {text: '项目结构', link: '/zh_CN/guide/project-structure'}, |
| 34 | + {text: '配置模板', link: '/zh_CN/guide/nginx-ui-template'}, |
| 35 | + {text: '贡献代码', link: '/zh_CN/guide/contributing'} |
| 36 | + ] |
61 | 37 | },
|
62 |
| - returnToTopLabel: '返回顶部', |
63 |
| - outlineTitle: '导航栏', |
64 |
| - darkModeSwitchLabel: '外观', |
65 |
| - sidebarMenuLabel: '归档', |
66 |
| - lastUpdatedText: '更新于', |
| 38 | + { |
| 39 | + text: '配置', |
| 40 | + collapsed: false, |
| 41 | + items: [ |
| 42 | + {text: '服务端', link: '/zh_CN/guide/config-server'}, |
| 43 | + {text: 'Nginx', link: '/zh_CN/guide/config-nginx'}, |
| 44 | + {text: 'Open AI', link: '/zh_CN/guide/config-openai'}, |
| 45 | + {text: 'Casdoor', link: '/zh_CN/guide/config-casdoor'} |
| 46 | + ] |
| 47 | + }, |
| 48 | + { |
| 49 | + text: '附录', |
| 50 | + collapsed: false, |
| 51 | + items: [ |
| 52 | + {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'}, |
| 53 | + {text: '开源协议', link: '/zh_CN/guide/license'} |
| 54 | + ] |
| 55 | + } |
| 56 | + ] |
| 57 | + }, |
67 | 58 |
|
68 |
| - search: { |
69 |
| - provider: 'local', |
70 |
| - options: { |
71 |
| - locales: { |
72 |
| - zh_CN: { |
73 |
| - translations: { |
74 |
| - button: { |
75 |
| - buttonText: '搜索文档', |
76 |
| - buttonAriaLabel: '搜索文档' |
77 |
| - }, |
78 |
| - modal: { |
79 |
| - noResultsText: '无法找到相关结果', |
80 |
| - resetButtonTitle: '清除查询条件', |
81 |
| - footer: { |
82 |
| - selectText: '选择', |
83 |
| - navigateText: '切换', |
84 |
| - closeText: '关闭' |
85 |
| - } |
86 |
| - } |
87 |
| - } |
88 |
| - } |
| 59 | + docFooter: { |
| 60 | + prev: '上一页', |
| 61 | + next: '下一页' |
| 62 | + }, |
| 63 | + returnToTopLabel: '返回顶部', |
| 64 | + outline: { |
| 65 | + label: '导航栏' |
| 66 | + }, |
| 67 | + darkModeSwitchLabel: '外观', |
| 68 | + sidebarMenuLabel: '归档', |
| 69 | + lastUpdated: { |
| 70 | + text: '更新于' |
| 71 | + }, |
| 72 | + search: { |
| 73 | + provider: 'local', |
| 74 | + options: { |
| 75 | + locales: { |
| 76 | + zh_CN: { |
| 77 | + translations: { |
| 78 | + button: { |
| 79 | + buttonText: '搜索文档', |
| 80 | + buttonAriaLabel: '搜索文档' |
| 81 | + }, |
| 82 | + modal: { |
| 83 | + noResultsText: '无法找到相关结果', |
| 84 | + resetButtonTitle: '清除查询条件', |
| 85 | + footer: { |
| 86 | + selectText: '选择', |
| 87 | + navigateText: '切换', |
| 88 | + closeText: '关闭' |
89 | 89 | }
|
| 90 | + } |
90 | 91 | }
|
| 92 | + } |
91 | 93 | }
|
| 94 | + } |
92 | 95 | }
|
| 96 | + } |
93 | 97 | }
|
0 commit comments