config.js

// .vuepress/config.js
module.exports = {
    title: '自学文档',
    description: '记录一些学习笔记',
    base: '/vuepressdoc/',
    head: [ // 注入到当前页面的 HTML  中的标签
        ['link', { rel: 'icon', href: '/markdown.png' }], // 增加一个自定义的 favicon(网页标签的图标)
    ],
    themeConfig: {
        nav: [
            { text: '首页', link: '/' },
            {
                text: '前端',
                ariaLabel: 'Language Menu',
                items: [
                    { text: 'js', link: '/js/1 数据类型' },
                    { text: 'jq', link: '/jq/' }
                ]
            }
        ],
        displayAllHeaders: false, // 默认值:false
        sidebarDepth: 3,
        sidebar: {
            '/js/': [
                '1 数据类型',  /* /foo/one.html */
                '2 变量',
                '3 运算符',
                '4 数组',
                '5 Symbol',
                '6 Set',
                '7 函数',
                '8 对象',
                '9 Bom',
                '10 原型和继承',
                '11 作用域闭包',
            ],
            '/jq/': [
                'three',  /* /foo/one.html */
            ],
        },
    },
    markdown: {
        lineNumbers: false
    }
}

你可能感兴趣的:(config.js)