config.js 2.0 KB

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