config.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. const config = {
  2. title: '简约而不简单的文档',
  3. themeConfig: {
  4. repo: 'https://github.com/xiaoxian521',
  5. docsDir: 'docs',
  6. locales: {
  7. '/': {
  8. lang: 'zh-CN',
  9. nav: [
  10. { text: '书写规范', link: '/zh/standard/' },
  11. { text: '插件分享', link: '/zh/plugs/' },
  12. ],
  13. sidebar: [
  14. {
  15. text: '简介',
  16. children: [
  17. { text: '项目描述', link: '/zh/introduction/description' },
  18. { text: '开源精神', link: '/zh/introduction/openSource' },
  19. { text: '贡献者', link: '/zh/introduction/contributor' },
  20. ],
  21. },
  22. ],
  23. },
  24. '/en/': {
  25. lang: 'en-US',
  26. nav: [
  27. { text: 'Standard', link: '/en/standard/' },
  28. { text: 'PlugsShare', link: '/zh/plugs/' },
  29. ],
  30. sidebar: [
  31. {
  32. text: 'introduction',
  33. children: [
  34. { text: 'description', link: '/en/introduction/description' },
  35. { text: 'openSource', link: '/en/introduction/openSource' },
  36. { text: 'contributor', link: '/en/introduction/contributor' },
  37. ],
  38. },
  39. ],
  40. },
  41. }
  42. }
  43. }
  44. module.exports = config