config.js

作者: 王帅同学 | 来源:发表于2021-09-24 17:35 被阅读0次
    // .vuepress/config.js
    module.exports = {
        title: '自学文档',
        description: '记录一些学习笔记',
        base: '/vuepressdoc/',
        head: [ // 注入到当前页面的 HTML <head> 中的标签
            ['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

          本文链接:https://www.haomeiwen.com/subject/dcbzgltx.html