zh_CN.ts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'},
  23. {text: '贡献代码', link: '/zh_CN/guide/contributing'},
  24. {text: '开源协议', link: '/zh_CN/guide/license'}
  25. ]
  26. },
  27. {
  28. text: '配置',
  29. collapsed: false,
  30. items: [
  31. {text: '服务端', link: '/zh_CN/guide/config-server'},
  32. {text: 'Nginx 日志', link: '/zh_CN/guide/config-nginx-log'},
  33. {text: 'Open AI', link: '/zh_CN/guide/config-openai'}
  34. ]
  35. }
  36. ]
  37. },
  38. docFooter: {
  39. prev: '上一页',
  40. next: '下一页',
  41. },
  42. returnToTopLabel: '返回顶部',
  43. outlineTitle: '导航栏',
  44. darkModeSwitchLabel: '外观',
  45. sidebarMenuLabel: '归档',
  46. lastUpdatedText: '更新于',
  47. search: {
  48. provider: 'local',
  49. options: {
  50. locales: {
  51. zh_CN: {
  52. translations: {
  53. button: {
  54. buttonText: '搜索文档',
  55. buttonAriaLabel: '搜索文档'
  56. },
  57. modal: {
  58. noResultsText: '无法找到相关结果',
  59. resetButtonTitle: '清除查询条件',
  60. footer: {
  61. selectText: '选择',
  62. navigateText: '切换',
  63. closeText: '关闭'
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }