VuePress 侧边栏几种配置
module.exports = {
title: "Fur",
description: "小僧不才,略懂皮毛(Fur)",
base: "/fur.baiqian.ltd/",
dest: "dist",
markdown: {
lineNumbers: true,
toc: {
includeLevel: [1, 2, 3],
},
},
themeConfig: {
nav: [
{
text: "指南",
link: "/guide/",
},
{
text: "手册",
link: "/handbook/",
},
{
text: "工具",
items: [{ text: "代码生成器", link: "/" }],
},
],
sidebar: {
// "/handbook/": "auto",
"/handbook/": [
{
title: "1. 框架指南",
collapsable: true,
path: "framework",
// children: [
// { title: "内置功能", path: "/handbook/" },
// { title: "展望未来", path: "/handbook/" },
// ],
},
// ["/handbook/framework", "1. 框架指南"],
{
title: "2. 功能特性",
collapsable: true,
children: [
{ title: "内置功能", path: "/handbook/" },
{ title: "展望未来", path: "/handbook/" },
],
},
],
},
sidebarDepth: 3,
},
};
如果您觉得本文对你有用,不妨帮忙点个赞,或者在评论里给我一句赞美,小小成就都是今后继续为大家编写优质文章的动力,百小僧拜谢!
欢迎您持续关注我的博客:)
版权所有,欢迎保留原文链接进行转载:)