zh_CN.ts 3.2 KB

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