Skip to content

Commit

Permalink
fix: fix slidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
wushengzhu committed Nov 29, 2023
1 parent 99241e2 commit 4ca97a0
Show file tree
Hide file tree
Showing 18 changed files with 169 additions and 159 deletions.
45 changes: 23 additions & 22 deletions src/.vuepress/sidebar/zh.ts
Original file line number Diff line number Diff line change
@@ -1,70 +1,71 @@
import { sidebar } from 'vuepress-theme-hope'

export const zhSidebar = sidebar({
'/': [
'/docs/': [
// '', // 首页
{
text: '面试须知',
icon: 'file-text',
icon: 'fa fa-file-text',
prefix: 'notice/',
link: 'docs/notice/',
link: 'notice/',
children: 'structure',
},
{
text: '个人简历',
icon: 'file',
icon: 'fa fa-file-text',
prefix: 'resume/',
link: 'docs/resume/',
link: 'resume/',
children: 'structure',
},
{
text: '前端基础',
icon: 'book',
prefix: 'docs/swordman/',
link: 'docs/swordman/',
icon: 'fa fa-book',
prefix: 'swordman/',
link: 'swordman/',
// collapsible: true,// 是否折叠
children: 'structure',
},
{
text: '前端框架',
icon: 'book',
prefix: 'docs/frame/',
link: 'docs/frame/',
icon: 'fa fa-book',
prefix: 'frame/',
link: 'frame/',
children: 'structure',
},
{
text: '打包工具',
icon: 'book',
prefix: 'docs/pack/',
icon: 'fa fa-book',
prefix: 'pack/',
// 如果设置当前节点不可点,就注释掉,并删除当前目录下的REMADE.md文件
// 这样面包屑会显示路径名,所以推荐只注释不删除
// link: 'docs/pack/',
// link: 'pack/',
children: 'structure',
},
{
text: '必会后端',
icon: 'file-text',
prefix: 'docs/backend/',
icon: 'fa fa-book',
prefix: 'backend/',
children: 'structure',
},
{
text: '微前端',
icon: 'file-text',
icon: 'fa fa-file-text',
prefix: 'micro/',
link: 'docs/micro/',
link: 'micro/',
children: 'structure',
},
{
text: '计算机基础',
icon: 'file-text',
icon: 'fa fa-book',
prefix: 'computer/',
link: 'docs/computer/',
link: 'computer/',
children: 'structure',
},
{
text: '笔试题集',
icon: 'file-text',
icon: 'fa fa-file-text',
prefix: 'write/',
link: 'docs/write/',
link: 'write/',
children: 'structure',
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export default hopeTheme({
name: 'wushengzhu',
url: '',
},
iconPrefix:'fa fa-',
// iconPrefix: 'fa fa-',
iconAssets: 'fontawesome', // 默认支持iconfont和字体图标fontawesome,不是外国那个fontawesome
darkmode: 'toggle',
themeColor: true, // 是否启用主题色选择
fullscreen: true, // 是否开启全屏
// pure: true, // 是否开启纯净模式。
logo: '/logo.svg',

repo: 'wushengzhu/interview-column', // 仓库链接
repo: 'wushengzhu/interview', // 仓库链接

docsDir: 'src',
locales: {
Expand Down
2 changes: 1 addition & 1 deletion src/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 面试专栏
index: false
icon: file-text
icon: fa fa-file-text
category:
- Guide
---
Expand Down
6 changes: 3 additions & 3 deletions src/docs/backend/nestjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# 这是文章的标题
title: nestjs
# 这是页面的图标
# icon: file
icon: 'fa fa-file-text'
# 这是侧边栏的顺序
order: 1
# 设置作者
author: wushengzhu
# 设置写作时间
date: 2020-01-01
# 一个页面可以有多个分类
category: ["后端"]
category: ['后端']
# 一个页面可以有多个标签
tag: ["backend"]
tag: ['backend']
# 此页面会在文章列表置顶
sticky: true
# 此页面会出现在文章收藏中
Expand Down
6 changes: 3 additions & 3 deletions src/docs/backend/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# 这是文章的标题
title: nodejs
# 这是页面的图标
# icon: file
icon: 'fa fa-file-text'
# 这是侧边栏的顺序
order: 1
# 设置作者
author: wushengzhu
# 设置写作时间
date: 2020-01-01
# 一个页面可以有多个分类
category: ["后端"]
category: ['后端']
# 一个页面可以有多个标签
tag: ["backend"]
tag: ['backend']
# 此页面会在文章列表置顶
sticky: true
# 此页面会出现在文章收藏中
Expand Down
25 changes: 9 additions & 16 deletions src/docs/computer/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# 计算机基础
---
title: 计算机基础
index: false

:::: code-group
::: code-group-item FOO
category:
- 计算机
---

```ts
const foo = 'foo'
```
## 目录

:::
- [Markdown 展示](vite.md)

::: code-group-item BAR

```ts
const bar = 'bar'
```

:::

::::
- [页面展示](webpack.md)
8 changes: 8 additions & 0 deletions src/docs/computer/network.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 计算机网络
icon: 'fa fa-file-text'
# 一个页面可以有多个分类
category: ['计算机基础']
# 一个页面可以有多个标签
tag: ['computer']
---
8 changes: 8 additions & 0 deletions src/docs/computer/system.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 操作系统
icon: 'fa fa-file-text'
# 一个页面可以有多个分类
category: ['计算机基础']
# 一个页面可以有多个标签
tag: ['computer']
---
6 changes: 3 additions & 3 deletions src/docs/frame/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# 这是文章的标题
title: angular
# 这是页面的图标
# icon: angular
icon: 'fa fa-file-text'
# 这是侧边栏的顺序
order: 3
# 设置作者
author: wushengzhu
# 设置写作时间
date: 2020-01-01
# 一个页面可以有多个分类
category: ["前端框架"]
category: ['前端框架']
# 一个页面可以有多个标签
tag: ["frontend"]
tag: ['frontend']
# 此页面会在文章列表置顶
sticky: true
# 此页面会出现在文章收藏中
Expand Down
6 changes: 3 additions & 3 deletions src/docs/frame/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 这是文章的标题
title: react
# 这是页面的图标
# icon: file
icon: 'fa fa-file-text'
# 这是侧边栏的顺序
order: 2
# 设置作者
Expand All @@ -11,9 +11,9 @@ author: wushengzhu
date: 2020-01-01
# 一个页面可以有多个分类
# 一个页面可以有多个分类
category: ["前端框架"]
category: ['前端框架']
# 一个页面可以有多个标签
tag: ["frontend"]
tag: ['frontend']
# 此页面会在文章列表置顶
sticky: true
# 此页面会出现在文章收藏中
Expand Down
Loading

0 comments on commit 4ca97a0

Please sign in to comment.