zh_CN.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import {LocaleSpecificConfig, DefaultTheme} from "vitepress"
  2. export const zhCNConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  3. themeConfig: {
  4. nav: [
  5. {text: '首页', link: '/zh_CN/'},
  6. {text: '手册', link: '/zh_CN/guide/about'},
  7. {text: '演示', link: 'https://demo.nginxui.com'}
  8. ],
  9. editLink: {
  10. text: '编辑此页',
  11. pattern: 'https://github.com/0xJacky/nginx-ui/edit/master/docs/:path'
  12. },
  13. sidebar: {
  14. '/zh_CN/guide/': [
  15. {
  16. text: '介绍',
  17. collapsed: false,
  18. items: [
  19. {text: '何为 Nginx UI?', link: '/zh_CN/guide/about'},
  20. {text: '即刻开始', link: '/zh_CN/guide/getting-started'},
  21. {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'},
  22. {text: '贡献代码', link: '/zh_CN/guide/contributing'},
  23. {text: '开源协议', link: '/zh_CN/guide/license'}
  24. ]
  25. },
  26. {
  27. text: '配置',
  28. collapsed: false,
  29. items: [
  30. {text: '服务端', link: '/zh_CN/guide/config-server'},
  31. {text: 'Nginx 日志', link: '/zh_CN/guide/config-nginx-log'},
  32. {text: 'Open AI', link: '/zh_CN/guide/config-openai'}
  33. ]
  34. }
  35. ]
  36. },
  37. docFooter: {
  38. prev: '上一页',
  39. next: '下一页',
  40. },
  41. returnToTopLabel: '返回顶部',
  42. outlineTitle: '导航栏',
  43. darkModeSwitchLabel: '外观',
  44. sidebarMenuLabel: '归档',
  45. lastUpdatedText: '更新于',
  46. search: {
  47. provider: 'local',
  48. options: {
  49. locales: {
  50. zh_CN: {
  51. translations: {
  52. button: {
  53. buttonText: '搜索文档',
  54. buttonAriaLabel: '搜索文档'
  55. },
  56. modal: {
  57. noResultsText: '无法找到相关结果',
  58. resetButtonTitle: '清除查询条件',
  59. footer: {
  60. selectText: '选择',
  61. navigateText: '切换',
  62. closeText: '关闭'
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }