dengjie commit : 部分教程编写

This commit is contained in:
clay 2022-11-08 00:21:56 +08:00
parent f27395c862
commit 416f1a5c5e
4 changed files with 43 additions and 24 deletions

View File

@ -5,6 +5,8 @@ module.exports = {
lineNumbers: true // 代码块显示行号
},
themeConfig: {
//最后更新时间
lastUpdated: 'Last Updated',
head: [
['link', {rel: 'icon', href: '/logo.png'}],
],
@ -22,36 +24,32 @@ module.exports = {
// },
{text: "博客", link: "https://blog.isww.cn/"}
],
/**
* 设置侧边栏最大深度
* 一般是以单个md文件中的 # ## ### #### 这几个标题文字为锚点自动生成导航
* **/
sidebarDepth: 4,
// sidebarDepth: 0, //0读取1级标题 1读取1级和2级标题 2读取1级、2级、3级标题
// 设置侧边栏内容
sidebar: [
{
title: '教程',
collapsable: false,
children: [
'/document/',
// {
// title: '侧边栏组合',
// // collapsable: true,
// children: [
// '/second/child/'
// ]
// }
]
},
{
title: '文档',
collapsable: false,
children: [
'/wiki/introduce/',
'/wiki/back-build/'
'/wiki/back-build/',
{
title: "侧边栏组合",
collapsable: false,
children: [
"/second/child/"
]
}
] // 根据自己的需求来订对应自己在docs下的文件夹名默认首页是README.md
},
// {
// title: '使用教程',
// collapsable: false,
// children: [
// '/document/',
//
// ]
// },
]
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -10,5 +10,5 @@ features:
details: 享受 Vue + webpack 的开发体验,在 Markdown 中使用 Vue 组件,同时可以使用 Vue 来开发自定义主题。
- title: 高性能
details: VuePress 为每个页面预渲染生成静态的 HTML同时在页面被加载的时候将作为 SPA 运行。
footer: MIT Licensed | Copyright © 2018-present Evan You
footer: MIT Licensed | Copyright © 2022-present Clay
---

View File

@ -1,4 +1,25 @@
# 首先
# config.js配置教程
## 页面路由地址对应写法
| 文件的相对路径 | 页面路由地址 |
| :------------ | :------------ |
| /README.md | / |
| /guide/README.md | /guide/ |
| /config.md | /config.html |
## nav配置【右上角的导航条】
```
nav:
[
{text: "首页", link: "/"},
{text: "指南", link: "/wiki/introduce/"},
{text: "博客", link: "https://blog.isww.cn/"}
],
```
## 侧边栏配置
### 设置侧边栏最大深度 sidebarDepth: 4
- 一般是以单个md文件中的 # ## ### #### 这几个标题文字为锚点自动生成导航
- 0读取1级标题 1读取1级和2级标题 2读取1级、2级、3级标题
### 设置侧边栏内容
## 其次
固定侧边栏,不折叠显示: collapsable: false,