config.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. module.exports = {
  2. base: '/vue-design/',
  3. title: 'Vue技术内幕',
  4. ga: 'UA-120533817-1',
  5. description: '逐行级别的 Vue 源码分析',
  6. markdown: {
  7. toc: {
  8. includeLevel: [2, 3, 4, 5, 6]
  9. }
  10. },
  11. themeConfig: {
  12. repo: 'HcySunYang/vue-design',
  13. docsDir: 'docs',
  14. editLinks: true,
  15. editLinkText: '错别字纠正',
  16. sidebarDepth: 3,
  17. nav: [
  18. {
  19. text: '正文',
  20. link: '/art/',
  21. },
  22. {
  23. text: '附录',
  24. link: '/appendix/'
  25. },
  26. {
  27. text: '扩展阅读',
  28. link: '/more/'
  29. },
  30. {
  31. text: '人之初',
  32. link: '/donate/'
  33. },
  34. {
  35. text: '关于',
  36. link: '/about/'
  37. }
  38. ],
  39. sidebar: {
  40. '/art/': [
  41. {
  42. title: '正文(持续更新...)',
  43. children: [
  44. '',
  45. '1start-learn',
  46. '2vue-constructor',
  47. '3vue-example',
  48. '4vue-normalize',
  49. '5vue-merge',
  50. '6vue-init-start',
  51. '7vue-reactive',
  52. '8vue-reactive-dep-watch',
  53. '9vue-state-init',
  54. '80vue-compiler-start',
  55. '81vue-parse-ast',
  56. '82vue-parsing',
  57. '83vue-codegen',
  58. '84vue-vdom',
  59. '85vue-vdom-patch'
  60. ]
  61. }
  62. ],
  63. '/appendix/': [
  64. {
  65. title: '附录',
  66. children: [
  67. '',
  68. 'vue-prototype',
  69. 'vue-global-api',
  70. 'vue-ins',
  71. 'core-util',
  72. 'web-util',
  73. 'shared-util',
  74. 'compiler-options'
  75. ]
  76. }
  77. ],
  78. '/more/': [
  79. {
  80. title: '扩展阅读',
  81. children: [
  82. '',
  83. 'vue-hoc'
  84. ]
  85. }
  86. ]
  87. }
  88. }
  89. }