zh_CN.ts 4.1 KB

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