zh_CN.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. ]
  44. },
  45. {
  46. text: '附录',
  47. collapsed: false,
  48. items: [
  49. {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'},
  50. {text: '开源协议', link: '/zh_CN/guide/license'}
  51. ]
  52. }
  53. ]
  54. },
  55. docFooter: {
  56. prev: '上一页',
  57. next: '下一页'
  58. },
  59. returnToTopLabel: '返回顶部',
  60. outline: {
  61. label: '导航栏'
  62. },
  63. darkModeSwitchLabel: '外观',
  64. sidebarMenuLabel: '归档',
  65. lastUpdated: {
  66. text: '更新于'
  67. },
  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. }
  89. }
  90. }
  91. }
  92. }
  93. }