zh_CN.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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: '使用 Winget 安装', link: '/zh_CN/guide/install-winget' },
  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/devcontainer' },
  33. { text: '构建', link: '/zh_CN/guide/build' },
  34. { text: '项目结构', link: '/zh_CN/guide/project-structure' },
  35. { text: '配置模板', link: '/zh_CN/guide/nginx-ui-template' },
  36. { text: '贡献代码', link: '/zh_CN/guide/contributing' }
  37. ]
  38. },
  39. {
  40. text: 'MCP',
  41. collapsed: false,
  42. items: [
  43. { text: '概述', link: '/zh_CN/guide/mcp' },
  44. { text: '配置文件管理', link: '/zh_CN/guide/mcp-config' },
  45. { text: 'Nginx 服务管理', link: '/zh_CN/guide/mcp-nginx' },
  46. ]
  47. },
  48. {
  49. text: '配置',
  50. collapsed: false,
  51. items: [
  52. { text: 'App', link: '/zh_CN/guide/config-app' },
  53. { text: 'Auth', link: '/zh_CN/guide/config-auth' },
  54. { text: 'Backup', link: '/zh_CN/guide/config-backup' },
  55. { text: 'Casdoor', link: '/zh_CN/guide/config-casdoor' },
  56. { text: 'Cert', link: '/zh_CN/guide/config-cert' },
  57. { text: 'Cluster', link: '/zh_CN/guide/config-cluster' },
  58. { text: 'Crypto', link: '/zh_CN/guide/config-crypto' },
  59. { text: 'Database', link: '/zh_CN/guide/config-database' },
  60. { text: 'Http', link: '/zh_CN/guide/config-http' },
  61. { text: 'Logrotate', link: '/zh_CN/guide/config-logrotate' },
  62. { text: 'Nginx', link: '/zh_CN/guide/config-nginx' },
  63. { text: 'Nginx Log', link: '/zh_CN/guide/config-nginx-log' },
  64. { text: 'Node', link: '/zh_CN/guide/config-node' },
  65. { text: 'Open AI', link: '/zh_CN/guide/config-openai' },
  66. { text: 'Server', link: '/zh_CN/guide/config-server' },
  67. { text: 'Terminal', link: '/zh_CN/guide/config-terminal' },
  68. { text: 'Webauthn', link: '/zh_CN/guide/config-webauthn' }
  69. ]
  70. },
  71. {
  72. text: '环境变量',
  73. collapsed: false,
  74. items: [
  75. { text: '参考手册', link: '/zh_CN/guide/env' },
  76. ]
  77. },
  78. {
  79. text: '附录',
  80. collapsed: false,
  81. items: [
  82. { text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example' },
  83. { text: '重置密码', link: '/zh_CN/guide/reset-password' },
  84. { text: '开源协议', link: '/zh_CN/guide/license' }
  85. ]
  86. }
  87. ]
  88. },
  89. docFooter: {
  90. prev: '上一页',
  91. next: '下一页'
  92. },
  93. returnToTopLabel: '返回顶部',
  94. outline: {
  95. label: '导航栏'
  96. },
  97. darkModeSwitchLabel: '外观',
  98. sidebarMenuLabel: '归档',
  99. lastUpdated: {
  100. text: '更新于'
  101. },
  102. search: {
  103. provider: 'local',
  104. options: {
  105. locales: {
  106. zh_CN: {
  107. translations: {
  108. button: {
  109. buttonText: '搜索文档',
  110. buttonAriaLabel: '搜索文档'
  111. },
  112. modal: {
  113. noResultsText: '无法找到相关结果',
  114. resetButtonTitle: '清除查询条件',
  115. footer: {
  116. selectText: '选择',
  117. navigateText: '切换',
  118. closeText: '关闭'
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }