config.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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-parsing-2',
  61. '84vue-codegen',
  62. '85vue-vdom',
  63. '86vue-vdom-patch'
  64. ]
  65. }
  66. ],
  67. '/appendix/': [
  68. {
  69. title: '附录',
  70. children: [
  71. '',
  72. 'vue-prototype',
  73. 'vue-global-api',
  74. 'vue-ins',
  75. 'core-util',
  76. 'web-util',
  77. 'shared-util',
  78. 'compiler-options'
  79. ]
  80. }
  81. ],
  82. '/more/': [
  83. {
  84. title: '扩展阅读',
  85. children: [
  86. '',
  87. 'vue-hoc'
  88. ]
  89. }
  90. ]
  91. }
  92. }
  93. }