zh_CN.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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: '/zh_CN/sponsor' },
  9. { text: '演示', link: demoUrl }
  10. ],
  11. editLink: {
  12. text: '编辑此页',
  13. pattern: editLinkPattern
  14. },
  15. sidebar: {
  16. '/zh_CN/guide/': [
  17. {
  18. text: '介绍',
  19. collapsed: false,
  20. items: [
  21. { text: '何为 Nginx UI?', link: '/zh_CN/guide/about' },
  22. { text: '即刻开始', link: '/zh_CN/guide/getting-started' },
  23. { text: '使用 Homebrew 安装', link: '/zh_CN/guide/install-homebrew' },
  24. { text: '安装脚本', link: '/zh_CN/guide/install-script-linux' }
  25. ]
  26. },
  27. {
  28. text: '开发',
  29. collapsed: false,
  30. items: [
  31. { text: '开发容器', link: '/zh_CN/guide/devcontainer' },
  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: 'MCP',
  40. collapsed: false,
  41. items: [
  42. { text: '概述', link: '/zh_CN/guide/mcp' },
  43. { text: '配置文件管理', link: '/zh_CN/guide/mcp-config' },
  44. { text: 'Nginx 服务管理', link: '/zh_CN/guide/mcp-nginx' },
  45. ]
  46. },
  47. {
  48. text: '配置',
  49. collapsed: false,
  50. items: [
  51. { text: 'App', link: '/zh_CN/guide/config-app' },
  52. { text: 'Auth', link: '/zh_CN/guide/config-auth' },
  53. { text: 'Backup', link: '/zh_CN/guide/config-backup' },
  54. { text: 'Casdoor', link: '/zh_CN/guide/config-casdoor' },
  55. { text: 'Cert', link: '/zh_CN/guide/config-cert' },
  56. { text: 'Cluster', link: '/zh_CN/guide/config-cluster' },
  57. { text: 'Crypto', link: '/zh_CN/guide/config-crypto' },
  58. { text: 'Database', link: '/zh_CN/guide/config-database' },
  59. { text: 'Http', link: '/zh_CN/guide/config-http' },
  60. { text: 'Logrotate', link: '/zh_CN/guide/config-logrotate' },
  61. { text: 'Nginx', link: '/zh_CN/guide/config-nginx' },
  62. { text: 'Node', link: '/zh_CN/guide/config-node' },
  63. { text: 'Open AI', link: '/zh_CN/guide/config-openai' },
  64. { text: 'Server', link: '/zh_CN/guide/config-server' },
  65. { text: 'Terminal', link: '/zh_CN/guide/config-terminal' },
  66. { text: 'Webauthn', link: '/zh_CN/guide/config-webauthn' }
  67. ]
  68. },
  69. {
  70. text: '环境变量',
  71. collapsed: false,
  72. items: [
  73. { text: '参考手册', link: '/zh_CN/guide/env' },
  74. ]
  75. },
  76. {
  77. text: '附录',
  78. collapsed: false,
  79. items: [
  80. { text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example' },
  81. { text: '重置密码', link: '/zh_CN/guide/reset-password' },
  82. { text: '开源协议', link: '/zh_CN/guide/license' }
  83. ]
  84. }
  85. ]
  86. },
  87. docFooter: {
  88. prev: '上一页',
  89. next: '下一页'
  90. },
  91. returnToTopLabel: '返回顶部',
  92. outline: {
  93. label: '导航栏'
  94. },
  95. darkModeSwitchLabel: '外观',
  96. sidebarMenuLabel: '归档',
  97. lastUpdated: {
  98. text: '更新于'
  99. },
  100. search: {
  101. provider: 'local',
  102. options: {
  103. locales: {
  104. zh_CN: {
  105. translations: {
  106. button: {
  107. buttonText: '搜索文档',
  108. buttonAriaLabel: '搜索文档'
  109. },
  110. modal: {
  111. noResultsText: '无法找到相关结果',
  112. resetButtonTitle: '清除查询条件',
  113. footer: {
  114. selectText: '选择',
  115. navigateText: '切换',
  116. closeText: '关闭'
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }