config.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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: '/donate/'
  37. },
  38. {
  39. text: '关于',
  40. link: '/about/'
  41. }
  42. ],
  43. sidebar: {
  44. '/art/': [
  45. {
  46. title: '正文(持续更新...)',
  47. children: [
  48. '',
  49. '1start-learn',
  50. '2vue-constructor',
  51. '3vue-example',
  52. '4vue-normalize',
  53. '5vue-merge',
  54. '6vue-init-start',
  55. '7vue-reactive',
  56. '8vue-reactive-dep-watch',
  57. '9vue-state-init',
  58. '80vue-compiler-start',
  59. '81vue-lexical-analysis',
  60. '82vue-parsing',
  61. '83vue-parsing-2',
  62. '84vue-codegen',
  63. '85vue-vdom',
  64. '86vue-vdom-patch'
  65. ]
  66. }
  67. ],
  68. '/appendix/': [
  69. {
  70. title: '附录',
  71. children: [
  72. '',
  73. 'vue-prototype',
  74. 'vue-global-api',
  75. 'vue-ins',
  76. 'core-util',
  77. 'web-util',
  78. 'shared-util',
  79. 'compiler-options'
  80. ]
  81. }
  82. ],
  83. '/more/': [
  84. {
  85. title: '扩展阅读',
  86. children: [
  87. '',
  88. 'vue-hoc'
  89. ]
  90. }
  91. ]
  92. }
  93. }
  94. }