en.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 en = defineConfig({
  6. description: "A VitePress Site",
  7. themeConfig: {
  8. // https://vitepress.dev/reference/default-theme-config
  9. nav: [
  10. { text: 'Guide', link: '/en/getting-started' },
  11. { text: 'Calendar', link: '/en/calendar' },
  12. {
  13. text: pkg.version,
  14. items: [
  15. {
  16. text: 'Changelog',
  17. link: 'https://github.com/vsme/chinese-days/blob/main/CHANGELOG.md'
  18. },
  19. {
  20. text: 'Contributing',
  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: 'Released under the MIT License.',
  40. copyright: 'Copyright © 2024-present Yawei Sun'
  41. },
  42. }
  43. })