config.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. module.exports = {
  2. base: '/doc/',
  3. title: '大屏设计',
  4. description: '使用拖拽快速生成动态大屏报表',
  5. dest: 'dist',
  6. lastUpdated: 'Last Updated',
  7. theme: '',
  8. themeConfig: {
  9. logo: '/logo.png',
  10. smoothScroll: true,
  11. sidebarDepth: 2,
  12. nav: [
  13. {text: '首页', link: '/'},
  14. {text: '指南', link: '/guide/'},
  15. {text: 'GitHub', link: 'https://github.com/anji-plus/report'},
  16. {text: 'Gitee', link: 'https://gitee.com/anji-plus/report'},
  17. ],
  18. sidebar: {
  19. '/guide/': [
  20. {
  21. title: '文档',
  22. collapsable: false,
  23. children: [
  24. {title: '介绍', path: '/guide/'},
  25. {title: '快速入门', path: '/guide/quickly'},
  26. ]
  27. },
  28. {
  29. title: '操作手册',
  30. collapsable: false,
  31. children: [
  32. {title: '数据源', path: '/guide/datasource'},
  33. {title: '数据集', path: '/guide/dataset'},
  34. {title: '大屏设计', path: '/guide/dashboard'},
  35. ]
  36. },
  37. {
  38. title: '其他',
  39. collapsable: false,
  40. children: [
  41. {title: '常见问题', path: '/guide/question'}
  42. ]
  43. }],
  44. }
  45. },
  46. plugins: [
  47. ['@vuepress/back-to-top', true],
  48. ],
  49. configureWebpack: {
  50. resolve: {
  51. alias: {
  52. '@': '/.vuepress/public'
  53. }
  54. }
  55. }
  56. }