📦 ariesly15 / aweleey.github.io

📄 config.js · 81 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81module.exports = {
    title: 'Hello JSer',
    description: 'daily note',
    head: [['link', { rel: 'icon', href: `/favicon.ico` }]],
    plugins: ['@vuepress/active-header-links', '@vuepress/back-to-top', '@vuepress/nprogress'],
    themeConfig: {
        sidebarDepth: 2,
        // displayAllHeaders: true,
        sidebar: [
            {
                title: '笔记', // 必要的
                path: '/notes/', // 可选的, 应该是一个绝对路径
                children: ['/notes/', '/notes/markdown-guide']
            },
            {
                title: 'JavaScript',
                path: '/JavaScript/',
                children: ['/JavaScript/', '/JavaScript/The-diff-with-import-and-require', '/JavaScript/test']
            },
            {
                title: 'Git',
                path: '/git/',
                children: [['', 'Git相关'], '/git/git-ssh-config', '/git/git-index-pack-failed']
            }
        ],
        // locales: {
        //     '/': {
        //         label: '简体中文',
        //         selectText: '选择语言',
        //         ariaLabel: '选择语言',
        //         editLinkText: '在 GitHub 上编辑此页',
        //         lastUpdated: '上次更新',
        //         sidebar: {
        //             '/notes/': [
        //                 {
        //                     title: '笔记',
        //                     collapsable: false,
        //                     sidebarDepth: 2,
        //                     children: [['', '笔记n'], 'markdown-guide']
        //                 }
        //             ],
        //             '/git/': [
        //                 {
        //                     title: 'Git',
        //                     collapsable: false,
        //                     sidebarDepth: 2,
        //                     children: [['', 'Git相关'], 'git-ssh-config', 'git-index-pack-failed']
        //                 }
        //             ]
        //         }
        //     }
        // },
        nav: [
            { text: '主页', link: '/' },
            // {
            //     text: '分类',
            //     items: [
            //         {
            //             text: 'JavaScript',
            //             link: '/JavaScript/'
            //         }
            //     ]
            // },
            {
                text: '关于',
                link: '/about'
            }
        ]
    },
    configureWebpack: {
        resolve: {
            alias: {
                '@assets': '../src/assets'
            }
        }
    },
    markdown: {
        lineNumbers: true
    }
};