config.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. module.exports = {
  2. base: '/',
  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. 'ast'
  85. ]
  86. }
  87. ],
  88. '/more/': [
  89. {
  90. title: '扩展阅读',
  91. children: [
  92. '',
  93. 'vue-hoc'
  94. ]
  95. }
  96. ]
  97. }
  98. }
  99. }