config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ],
  12. sidebar: [
  13. {
  14. text: '简介',
  15. children: [
  16. { text: '项目描述', link: '/zh/introduction/description' },
  17. { text: '开源精神', link: '/zh/introduction/openSource' },
  18. { text: '贡献者', link: '/zh/introduction/contributor' },
  19. ],
  20. },
  21. ],
  22. },
  23. '/en/': {
  24. lang: 'en-US',
  25. nav: [
  26. { text: 'Standard', link: '/en/standard/' },
  27. ],
  28. sidebar: [
  29. {
  30. text: 'introduction',
  31. children: [
  32. { text: 'description', link: '/en/introduction/description' },
  33. { text: 'openSource', link: '/en/introduction/openSource' },
  34. { text: 'contributor', link: '/en/introduction/contributor' },
  35. ],
  36. },
  37. ],
  38. },
  39. }
  40. }
  41. }
  42. module.exports = config