config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. module.exports = {
  2. base: '/vue-design/',
  3. title: '走进Vue源码',
  4. description: '逐行级别的 Vue 源码分析',
  5. markdown: {
  6. toc: {
  7. includeLevel: [2, 3, 4, 5, 6]
  8. }
  9. },
  10. themeConfig: {
  11. sidebarDepth: 3,
  12. nav: [
  13. {
  14. text: '正文',
  15. link: '/art/',
  16. },
  17. {
  18. text: '附录',
  19. link: '/appendix/'
  20. },
  21. {
  22. text: '扩展阅读',
  23. link: '/more/'
  24. }
  25. ],
  26. sidebar: {
  27. '/art/': [
  28. {
  29. title: '正文',
  30. children: [
  31. '',
  32. '1start-learn',
  33. '2vue-constructor',
  34. '3vue-example',
  35. '4vue-normalize',
  36. '5vue-merge',
  37. '6vue-init-start',
  38. '7vue-reactive',
  39. '8vue-reactive-dep-watch',
  40. '80vue-compiler-start',
  41. '81vue-parse-ast'
  42. ]
  43. }
  44. ],
  45. '/appendix/': [
  46. {
  47. title: '附录',
  48. children: [
  49. '',
  50. 'vue-prototype',
  51. 'vue-global-api',
  52. 'vue-ins',
  53. 'core-util',
  54. 'web-util',
  55. 'shared-util',
  56. 'compiler-options'
  57. ]
  58. }
  59. ],
  60. '/more/': [
  61. {
  62. title: '扩展阅读',
  63. children: [
  64. '',
  65. 'vue-hoc'
  66. ]
  67. }
  68. ]
  69. }
  70. }
  71. }