config.js 1.9 KB

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