config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. repo: 'HcySunYang/vue-design',
  12. docsDir: 'docs',
  13. editLinks: true,
  14. editLinkText: '错别字纠正',
  15. sidebarDepth: 3,
  16. nav: [
  17. {
  18. text: '正文',
  19. link: '/art/',
  20. },
  21. {
  22. text: '附录',
  23. link: '/appendix/'
  24. },
  25. {
  26. text: '扩展阅读',
  27. link: '/more/'
  28. },
  29. {
  30. text: '人之初',
  31. link: '/donate/'
  32. },
  33. {
  34. text: '关于',
  35. link: '/about/'
  36. }
  37. ],
  38. sidebar: {
  39. '/art/': [
  40. {
  41. title: '正文',
  42. children: [
  43. '',
  44. '1start-learn',
  45. '2vue-constructor',
  46. '3vue-example',
  47. '4vue-normalize',
  48. '5vue-merge',
  49. '6vue-init-start',
  50. '7vue-reactive',
  51. '8vue-reactive-dep-watch',
  52. '9vue-state-init',
  53. '80vue-compiler-start',
  54. '81vue-parse-ast',
  55. '82vue-parsing',
  56. '83vue-codegen',
  57. '84vue-vdom',
  58. '85vue-vdom-patch'
  59. ]
  60. }
  61. ],
  62. '/appendix/': [
  63. {
  64. title: '附录',
  65. children: [
  66. '',
  67. 'vue-prototype',
  68. 'vue-global-api',
  69. 'vue-ins',
  70. 'core-util',
  71. 'web-util',
  72. 'shared-util',
  73. 'compiler-options'
  74. ]
  75. }
  76. ],
  77. '/more/': [
  78. {
  79. title: '扩展阅读',
  80. children: [
  81. '',
  82. 'vue-hoc'
  83. ]
  84. }
  85. ]
  86. }
  87. }
  88. }