cloud-security-wiki/docs/.vuepress/config.js

60 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
title: "Cloud Security",// 文档标题,左上角显示
description: "Cloud Security",
markdown: {
lineNumbers: true // 代码块显示行号
},
themeConfig: {
head: [
['link', {rel: 'icon', href: '/logo.png'}],
],
//nav配置
nav:
[
{text: "首页", link: "/"},
{text: "指南", link: "/wiki/introduce/"},
// {
// text: "选择语言",
// items: [
// {text: "English", link: "/language/english"},
// {text: "简体中文", link: "/language/chinese"}
// ]
// },
{text: "博客", link: "https://blog.isww.cn/"}
],
/**
* 设置侧边栏最大深度
* 一般是以单个md文件中的 # ## ### #### 这几个标题文字为锚点自动生成导航
* **/
sidebarDepth: 4,
// sidebarDepth: 0, //0读取1级标题 1读取1级和2级标题 2读取1级、2级、3级标题
// 设置侧边栏内容
sidebar: [
{
title: '文档',
collapsable: true,
children: [
'/wiki/introduce/',
'/wiki/back-build/'
] // 根据自己的需求来订对应自己在docs下的文件夹名默认首页是README.md
},
{
title: '第二个侧边栏',
collapsable: true,
children: [
'/second/',
{
title: '侧边栏组合',
collapsable: true,
children: [
'/second/child/'
]
}
]
}
]
}
};