config.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. { text: '设计图及UI规范', link: '/zh/introduction/ui' },
  21. ],
  22. },
  23. ],
  24. },
  25. '/en/': {
  26. lang: 'en-US',
  27. nav: [
  28. { text: 'Standard', link: '/en/standard/' },
  29. { text: 'PlugsShare', link: '/zh/plugs/' },
  30. ],
  31. sidebar: [
  32. {
  33. text: 'introduction',
  34. children: [
  35. { text: 'description', link: '/en/introduction/description' },
  36. { text: 'openSource', link: '/en/introduction/openSource' },
  37. { text: 'contributor', link: '/en/introduction/contributor' },
  38. { text: 'DesignDrawing、UISpecification', link: '/en/introduction/ui' },
  39. ],
  40. },
  41. ],
  42. },
  43. }
  44. }
  45. }
  46. module.exports = config