config.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. module.exports = {
  2. base: '/',
  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. '90parser-intro',
  42. '100vue-html-parser'
  43. ]
  44. }
  45. ],
  46. '/appendix/': [
  47. {
  48. title: '附录',
  49. children: [
  50. '',
  51. 'vue-prototype',
  52. 'vue-global-api',
  53. 'vue-ins',
  54. 'core-util',
  55. 'web-util',
  56. 'shared-util',
  57. 'compiler-options'
  58. ]
  59. }
  60. ],
  61. '/more/': [
  62. {
  63. title: '扩展阅读',
  64. children: [
  65. '',
  66. 'vue-hoc'
  67. ]
  68. }
  69. ]
  70. }
  71. }
  72. }