123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- module.exports = {
- title: '看白鹿的博客',
- description: '只有敢于尝试,才能品味人生.',
- // base: '/myBlogs/',
- dest: './dist',
- head: [
- // ['link', { rel: 'icon', href: '/favicon.ico' }], // 增加一个自定义的 favicon(网页标签的图标)
- [
- 'link',
- {
- rel: 'icon',
- href: '/logo.png',
- },
- ], // 增加一个自定义的 favicon(网页标签的图标)
- ],
- themeConfig: {
- sidebarDepth: 3, // e'b将同时提取markdown中h2 和 h3 标题,显示在侧边栏上。
- lastUpdated: 'Last Updated', // 文档更新时间:每个文件git最后提交的时间
- nav: [
- // { text: '前端算法', link: '/algorithm/' }, // 内部链接 以docs为根目录
- {
- text: '前端',
- items: [
- {
- text: 'CSS',
- link: '/CSS/',
- },
- {
- text: 'flutter',
- link: '/FLUTTER/',
- },
- {
- text: 'GIT',
- link: '/GIT/',
- },
- {
- text: 'JavaScript',
- link: '/JavaScript/',
- },
- ],
- },
- {
- text: '后台',
- items: [
- {
- text: 'node',
- link: '/NODE/',
- },
- {
- text: 'ubuntu',
- link: '/UBUNTU/',
- },
- ],
- }, // 外部链接
- {
- text: '其他',
- items: [
- {
- text: 'IDE',
- link: '/IDE/',
- },
- ],
- },
- // 下拉列表
- {
- text: 'GitHub',
- link: 'https://github.com/Johnhong9527',
- // items: [
- // { text: 'GitHub地址', link: 'https://github.com/Johnhong9527' },
- // /* {
- // text: '算法仓库',
- // link: 'https://github.com/OBKoro1/Brush_algorithm'
- // } */
- // ]
- },
- ],
- sidebar: {
- '/CSS/': [
- '',
- 'cases',
- '2018_10_21_01',
- '2018_10_21_02',
- '2018_10_21_03',
- '2018_10_21_04',
- '2018_10_21_05',
- 'principle',
- ],
- '/FLUTTER/': ['', '2018_10_25_01'],
- '/GIT/': ['', '2018_10_22_01', '2018_10_22_02'],
- '/IDE/': ['', '2018_10_28_01'],
- '/JavaScript/': ['', 'one', '2018_10_28_01', '2018_10_29_02'],
- '/NODE/': ['', '01_nodejs_phantomjs_nodemailer', '2018_10_28_01'],
- '/UBUNTU/': ['', '2018_10_28_01', '2018_10_28_02', '2018_10_28_03'],
- },
- },
- configureWebpack: {
- resolve: {
- alias: {
- '@js': '/docs/.vuepress/components/js',
- '@alias': 'path/to/some/dir',
- },
- },
- },
- markdown: {
- module: {
- rules: [
- {
- test: /\.less$/,
- loader: 'less-loader', // compiles Less to CSS
- },
- ],
- },
- lineNumbers: true,
- // markdown-it-anchor 的选项
- // anchor: { permalink: false },
- // markdown-it-toc 的选项
- // toc: { includeLevel: [1, 2] },
- // config: md => {
- // // 使用更多的 markdown-it 插件!
- // md.use(require('markdown-it-xxx'))
- // }
- },
- };
|