zh.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import { createRequire } from 'module'
  2. import { defineConfig } from 'vitepress'
  3. const require = createRequire(import.meta.url)
  4. const pkg = require('chinese-days/package.json')
  5. export const zh = defineConfig({
  6. description: "A VitePress Site",
  7. themeConfig: {
  8. // https://vitepress.dev/reference/default-theme-config
  9. nav: [
  10. { text: '指南', link: '/getting-started' },
  11. { text: '日历', link: '/calendar' },
  12. {
  13. text: pkg.version,
  14. items: [
  15. {
  16. text: '更新日志',
  17. link: 'https://github.com/vsme/chinese-days/blob/main/CHANGELOG.md'
  18. },
  19. {
  20. text: '参与贡献',
  21. link: 'https://github.com/vsme/chinese-days?tab=readme-ov-file#%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81'
  22. }
  23. ]
  24. },
  25. ],
  26. sidebar: [
  27. {
  28. text: 'Examples',
  29. items: [
  30. { text: 'Markdown Examples', link: '/markdown-examples' },
  31. { text: 'Runtime API Examples', link: '/api-examples' }
  32. ]
  33. }
  34. ],
  35. socialLinks: [
  36. { icon: 'github', link: 'https://github.com/vsme/chinese-days' }
  37. ],
  38. footer: {
  39. message: '基于 MIT 许可发布',
  40. copyright: `Copyright © 2019-${new Date().getFullYear()} Yawei Sun`
  41. },
  42. docFooter: {
  43. prev: '上一页',
  44. next: '下一页'
  45. },
  46. outline: {
  47. label: '页面导航'
  48. },
  49. lastUpdated: {
  50. text: '最后更新于',
  51. formatOptions: {
  52. dateStyle: 'short',
  53. timeStyle: 'medium'
  54. }
  55. },
  56. langMenuLabel: '多语言',
  57. returnToTopLabel: '回到顶部',
  58. sidebarMenuLabel: '菜单',
  59. darkModeSwitchLabel: '主题',
  60. lightModeSwitchTitle: '切换到浅色模式',
  61. darkModeSwitchTitle: '切换到深色模式'
  62. }
  63. })