zh_CN.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/nginx-ui-template'},
  32. {text: '贡献代码', link: '/zh_CN/guide/contributing'}
  33. ]
  34. },
  35. {
  36. text: '配置',
  37. collapsed: false,
  38. items: [
  39. {text: '服务端', link: '/zh_CN/guide/config-server'},
  40. {text: 'Nginx', link: '/zh_CN/guide/config-nginx'},
  41. {text: 'Open AI', link: '/zh_CN/guide/config-openai'},
  42. {text: 'Casdoor', link: '/zh_CN/guide/config-casdoor'},
  43. {text: 'Logrotate', link: '/zh_CN/guide/config-logrotate'},
  44. {text: '集群', link: '/zh_CN/guide/config-cluster'},
  45. {text: '认证', link: '/zh_CN/guide/config-auth'},
  46. {text: '加密', link: '/zh_CN/guide/config-crypto'}
  47. ]
  48. },
  49. {
  50. text: '环境变量',
  51. collapsed: false,
  52. items: [
  53. {text: '参考手册', link: '/zh_CN/guide/env'},
  54. ]
  55. },
  56. {
  57. text: '附录',
  58. collapsed: false,
  59. items: [
  60. {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'},
  61. {text: '开源协议', link: '/zh_CN/guide/license'}
  62. ]
  63. }
  64. ]
  65. },
  66. docFooter: {
  67. prev: '上一页',
  68. next: '下一页'
  69. },
  70. returnToTopLabel: '返回顶部',
  71. outline: {
  72. label: '导航栏'
  73. },
  74. darkModeSwitchLabel: '外观',
  75. sidebarMenuLabel: '归档',
  76. lastUpdated: {
  77. text: '更新于'
  78. },
  79. search: {
  80. provider: 'local',
  81. options: {
  82. locales: {
  83. zh_CN: {
  84. translations: {
  85. button: {
  86. buttonText: '搜索文档',
  87. buttonAriaLabel: '搜索文档'
  88. },
  89. modal: {
  90. noResultsText: '无法找到相关结果',
  91. resetButtonTitle: '清除查询条件',
  92. footer: {
  93. selectText: '选择',
  94. navigateText: '切换',
  95. closeText: '关闭'
  96. }
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }