config.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. module.exports = {
  2. <<<<<<< HEAD
  3. title: '看白鹿的博客',
  4. description: '只有敢于尝试,才能品味人生.',
  5. // base: '/myBlogs/',
  6. dest: 'dist',
  7. head: [
  8. // ['link', { rel: 'icon', href: '/favicon.ico' }], // 增加一个自定义的 favicon(网页标签的图标)
  9. [
  10. 'link',
  11. {
  12. rel: 'icon',
  13. href: '/logo.png',
  14. },
  15. ], // 增加一个自定义的 favicon(网页标签的图标)
  16. ],
  17. plugins: [
  18. /*[
  19. 'vuepress-plugin-comment',
  20. {
  21. choosen: 'valine',
  22. // options选项中的所有参数,会传给Valine的配置
  23. options: {
  24. el: '#valine-vuepress-comment',
  25. appId: 'O2bEd2bFE0R0IEE35j9sHGhd-gzGzoHsz',
  26. appKey: 'fF4QkBG5GPghnvV7nqclEqty',
  27. notify: false,
  28. verify: false,
  29. visitor: true,
  30. path: '<%- frontmatter.commentid || frontmatter.permalink %>',
  31. avatar: 'vBPlRNwUOJlHqfmoSAmXz5Qk',
  32. placeholder: '欢迎留言与我分享您的想法...',
  33. }
  34. }
  35. ]*/
  36. ],
  37. themeConfig: {
  38. sidebarDepth: 3, // e'b将同时提取markdown中h2 和 h3 标题,显示在侧边栏上。
  39. repoLabel: '查看源码',
  40. lastUpdated: 'Last Updated', // 文档更新时间:每个文件git最后提交的时间
  41. nav: [
  42. // { text: '前端算法', link: '/algorithm/' }, // 内部链接 以docs为根目录
  43. {
  44. text: '前端',
  45. items: [
  46. {
  47. text: 'CSS',
  48. link: '/CSS/',
  49. },
  50. {
  51. text: 'flutter',
  52. link: '/FLUTTER/',
  53. },
  54. {
  55. text: 'GIT',
  56. link: '/GIT/',
  57. },
  58. {
  59. text: 'JavaScript',
  60. link: '/JavaScript/',
  61. },
  62. {
  63. text: 'react',
  64. link: '/REACT/',
  65. },
  66. {
  67. text: 'vue',
  68. link: '/VUE/',
  69. },
  70. ],
  71. },
  72. {
  73. text: '后台',
  74. items: [
  75. {
  76. text: 'node',
  77. link: '/NODE/',
  78. },
  79. {
  80. text: 'ubuntu',
  81. link: '/UBUNTU/',
  82. },
  83. ],
  84. }, // 外部链接
  85. {
  86. text: '其他',
  87. items: [
  88. {
  89. text: 'IDE',
  90. link: '/IDE/',
  91. },
  92. {
  93. text: '待了解',
  94. link: '/About/WHY.md',
  95. },
  96. {
  97. text: '面试',
  98. link: '/INTERVIEW/',
  99. },
  100. {
  101. text: '你好',
  102. link: '/hello/',
  103. },
  104. ],
  105. },
  106. // 下拉列表
  107. {
  108. text: 'GitHub',
  109. link: 'https://github.com/Johnhong9527',
  110. // items: [
  111. // { text: 'GitHub地址', link: 'https://github.com/Johnhong9527' },
  112. // /* {
  113. // text: '算法仓库',
  114. // link: 'https://github.com/OBKoro1/Brush_algorithm'
  115. // } */
  116. // ]
  117. },
  118. ],
  119. sidebar: {
  120. '/CSS/': [
  121. '',
  122. 'cases',
  123. '2018_10_21_01',
  124. '2018_10_21_02',
  125. '2018_10_21_03',
  126. '2018_10_21_04',
  127. '2018_10_21_05',
  128. 'principle',
  129. '2019_04_11_01'
  130. ],
  131. '/FLUTTER/': ['', '2018_10_25_01'],
  132. '/GIT/': ['', '2018_10_22_01', '2018_10_22_02', '2018_10_31_01'],
  133. '/IDE/': ['', '2018_10_28_01'],
  134. '/INTERVIEW/': ['', 'BasicAjax', 'HTTP', 'Terminology'],
  135. '/JavaScript/': [
  136. '',
  137. // '01',
  138. '2018_10_29_02',
  139. '2018_10_28_01',
  140. '2018_11_02_01',
  141. '2018_11_02_02',
  142. '2018_11_02_03',
  143. '2018_11_02_04',
  144. '2018_11_02_05',
  145. ],
  146. '/NODE/': ['', '01_nodejs_phantomjs_nodemailer', '2018_10_28_01'],
  147. '/REACT/': ['', '2018_11_02_01'],
  148. '/UBUNTU/': ['', '2018_10_28_01', '2018_10_28_02', '2018_10_28_03', '2019_01_11'],
  149. '/VUE/': [
  150. '',
  151. '2018_10_31_01',
  152. '2018_10_31_02',
  153. '2018_11_02_01',
  154. '2018_11_02_02',
  155. '2018_11_02_03',
  156. '2018_11_02_04',
  157. ],
  158. },
  159. algolia: {
  160. apiKey: 'f155116ae3f199b1d79b55adf623b6d8',
  161. indexName: 'honghaitao',
  162. },
  163. },
  164. configureWebpack: {
  165. resolve: {
  166. alias: {
  167. '@js': '/docs/.vuepress/components/js',
  168. '@alias': 'path/to/some/dir',
  169. },
  170. },
  171. },
  172. markdown: {
  173. module: {
  174. rules: [
  175. {
  176. test: /\.less$/,
  177. loader: 'less-loader', // compiles Less to CSS
  178. },
  179. ],
  180. },
  181. lineNumbers: true,
  182. // markdown-it-anchor 的选项
  183. // anchor: { permalink: false },
  184. // markdown-it-toc 的选项
  185. // toc: { includeLevel: [1, 2] },
  186. // config: md => {
  187. // // 使用更多的 markdown-it 插件!
  188. // md.use(require('markdown-it-xxx'))
  189. // }
  190. },
  191. =======
  192. title: '看白鹿的博客',
  193. description: '只有敢于尝试,才能品味人生.',
  194. // base: '/myBlogs/',
  195. dest: 'dist',
  196. head: [
  197. // ['link', { rel: 'icon', href: '/favicon.ico' }], // 增加一个自定义的 favicon(网页标签的图标)
  198. [
  199. 'link',
  200. {
  201. rel: 'icon',
  202. href: '/logo.png'
  203. }
  204. ] // 增加一个自定义的 favicon(网页标签的图标)
  205. ],
  206. themeConfig: {
  207. sidebarDepth: 3, // e'b将同时提取markdown中h2 和 h3 标题,显示在侧边栏上。
  208. repoLabel: '查看源码',
  209. lastUpdated: 'Last Updated', // 文档更新时间:每个文件git最后提交的时间
  210. nav: [
  211. // { text: '前端算法', link: '/algorithm/' }, // 内部链接 以docs为根目录
  212. {
  213. text: '前端',
  214. items: [
  215. {
  216. text: 'CSS',
  217. link: '/CSS/'
  218. },
  219. {
  220. text: 'flutter',
  221. link: '/FLUTTER/'
  222. },
  223. {
  224. text: 'GIT',
  225. link: '/GIT/'
  226. },
  227. {
  228. text: 'JavaScript',
  229. link: '/JavaScript/'
  230. },
  231. {
  232. text: 'react',
  233. link: '/REACT/'
  234. },
  235. {
  236. text: 'vue',
  237. link: '/VUE/'
  238. }
  239. ]
  240. },
  241. {
  242. text: '后台',
  243. items: [
  244. {
  245. text: 'node',
  246. link: '/NODE/'
  247. },
  248. {
  249. text: 'ubuntu',
  250. link: '/UBUNTU/'
  251. }
  252. ]
  253. }, // 外部链接
  254. {
  255. text: '其他',
  256. items: [
  257. {
  258. text: 'IDE',
  259. link: '/IDE/'
  260. },
  261. {
  262. text: '待了解',
  263. link: '/About/WHY.md'
  264. },
  265. {
  266. text: '面试',
  267. link: '/INTERVIEW/'
  268. }
  269. /*{
  270. text: '你好',
  271. link: '/hello/',
  272. },*/
  273. ]
  274. },
  275. // 下拉列表
  276. {
  277. text: 'GitHub',
  278. link: 'https://github.com/Johnhong9527'
  279. // items: [
  280. // { text: 'GitHub地址', link: 'https://github.com/Johnhong9527' },
  281. // /* {
  282. // text: '算法仓库',
  283. // link: 'https://github.com/OBKoro1/Brush_algorithm'
  284. // } */
  285. // ]
  286. }
  287. ],
  288. sidebar: {
  289. '/CSS/': [
  290. '',
  291. 'cases',
  292. '2018_10_21_01',
  293. '2018_10_21_02',
  294. '2018_10_21_03',
  295. '2018_10_21_04',
  296. '2018_10_21_05',
  297. 'principle',
  298. '2019_04_11_01'
  299. ],
  300. '/FLUTTER/': ['', '2018_10_25_01'],
  301. '/GIT/': ['', '2018_10_22_01', '2018_10_22_02', '2018_10_31_01'],
  302. '/IDE/': ['', '2018_10_28_01'],
  303. '/INTERVIEW/': ['', 'BasicAjax', 'HTTP', 'Terminology'],
  304. '/JavaScript/': [
  305. '',
  306. // '01',
  307. '2018_10_29_02',
  308. '2018_10_28_01',
  309. '2018_11_02_01',
  310. '2018_11_02_02',
  311. '2018_11_02_03',
  312. '2018_11_02_04',
  313. '2018_11_02_05',
  314. '2019_07_16_01'
  315. ],
  316. '/NODE/': ['', '01_nodejs_phantomjs_nodemailer', '2018_10_28_01'],
  317. '/REACT/': ['', '2018_11_02_01'],
  318. '/UBUNTU/': ['', '2018_10_28_01', '2018_10_28_02', '2018_10_28_03', '2019_01_11'],
  319. '/VUE/': [
  320. '',
  321. '2018_10_31_01',
  322. '2018_10_31_02',
  323. '2018_11_02_01',
  324. '2018_11_02_02',
  325. '2018_11_02_03',
  326. '2018_11_02_04'
  327. ]
  328. },
  329. algolia: {
  330. apiKey: 'f155116ae3f199b1d79b55adf623b6d8',
  331. indexName: 'honghaitao'
  332. }
  333. },
  334. configureWebpack: {
  335. resolve: {
  336. alias: {
  337. '@js': '/docs/.vuepress/components/js',
  338. '@alias': 'path/to/some/dir'
  339. }
  340. }
  341. },
  342. markdown: {
  343. module: {
  344. rules: [
  345. {
  346. test: /\.less$/,
  347. loader: 'less-loader' // compiles Less to CSS
  348. }
  349. ]
  350. },
  351. lineNumbers: true
  352. // markdown-it-anchor 的选项
  353. // anchor: { permalink: false },
  354. // markdown-it-toc 的选项
  355. // toc: { includeLevel: [1, 2] },
  356. // config: md => {
  357. // // 使用更多的 markdown-it 插件!
  358. // md.use(require('markdown-it-xxx'))
  359. // }
  360. }
  361. >>>>>>> d59557e7630e8be2288839256d3953fcca26a4da
  362. };