config.js
2.08 KB
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
module.exports = {
title: "glsx-components文档", // 文档标题,左上角显示
description: "glsx-components文档描述",
// base: '/', // 这里写你的仓库名称
head: [
[
"link",
{
rel: "shortcut icon",
type: "image/x-icon",
href: `/jyjwebdocs/favicon.ico`,
},
],
], //这里配置你的网页头部信息等
themeConfig: {
/**
* 设置侧边栏最大深度
* 一般是以单个md文件中的 # ## ### #### 这几个标题文字为锚点自动生成导航
* **/
sidebarDepth: 2,
// 设置侧边栏内容
sidebar: [
{
title: "开发指南",
collapsable: false, // 是否具有展开收起功能
children: ["/firstside/","/firstside/update"], // 这个是根据自己的需求来订,对应自己在docs下的文件夹名,默认首页是README.md
},
{
title: "组件文档",
collapsable: false, // 是否具有展开收起功能
children: ["/components/table","/components/button"],
},
// {
// title: "第一个侧边栏",
// collapsable: false, // 是否具有展开收起功能
// children: ["/firstside/", "/firstside/otherModel", "/firstside/child/"], // 这个是根据自己的需求来订,对应自己在docs下的文件夹名,默认首页是README.md
// },
// {
// title: "第二个侧边栏",
// collapsable: true, // 开启展开收起功能,注意下图中菜单名称旁边的小角标
// children: [
// "/second/",
// {
// title: "侧边栏组合",
// collapsable: true,
// children: ["/second/child/", "/second/child/secondChild"],
// },
// ],
// },
],
// 设置菜单
nav: [
{ text: "首页", link: "/" },
// {
// text: "其他文档",
// items: [
// { text: "demo1", link: "http://www.baidu.com" },
// { text: "demo2", link: "http://www.baidu.cn" },
// ],
// },
],
},
base:'/glsx-components/'
};