mirror of
https://github.com/m1ngsama/documents.git
synced 2025-12-24 10:51:23 +00:00
fix the sidebar config
This commit is contained in:
parent
c06e7939da
commit
e8627e46e1
1 changed files with 12 additions and 14 deletions
|
|
@ -1,39 +1,37 @@
|
||||||
import { withMermaid } from "vitepress-plugin-mermaid"
|
import { withMermaid } from 'vitepress-plugin-mermaid';
|
||||||
import { sidebar as sidebarArchived } from "../archived/sidebar"
|
import { sidebar as sidebarArchived } from '../archived/sidebar';
|
||||||
|
import { sidebar as sidebarProcess } from '../process/sidebar';
|
||||||
|
|
||||||
// https://vitepress.dev/reference/site-config
|
// https://vitepress.dev/reference/site-config
|
||||||
export default withMermaid({
|
export default withMermaid({
|
||||||
title: "计算机协会文档",
|
title: '计算机协会文档',
|
||||||
description: "Documents for nbtca",
|
description: 'Documents for nbtca',
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
// https://vitepress.dev/reference/default-theme-config
|
// https://vitepress.dev/reference/default-theme-config
|
||||||
nav: [
|
nav: [
|
||||||
{ text: '流程', link: '/process/borrow-classroom' },
|
{ text: '流程', link: '/process/borrow-classroom' },
|
||||||
{ text: '维修', link: '/repair/guide' },
|
{ text: '维修', link: '/repair/guide' },
|
||||||
{ text: '存档', link: '/archived' }
|
{ text: '存档', link: '/archived' },
|
||||||
],
|
],
|
||||||
search: {
|
search: {
|
||||||
provider: "local"
|
provider: 'local',
|
||||||
},
|
},
|
||||||
sidebar: {
|
sidebar: {
|
||||||
'/process/': [
|
|
||||||
{ text: '借教室', link: '/process/2025/borrow-classroom' },
|
|
||||||
{ text: '申请第二课堂学分', link: '/process/2025/apply-for-credits' },
|
|
||||||
'/process/': sidebarProcess,
|
'/process/': sidebarProcess,
|
||||||
'/repair/': [
|
'/repair/': [
|
||||||
{ text: '维修操作指南', link: '/repair/guide' },
|
{ text: '维修操作指南', link: '/repair/guide' },
|
||||||
{ text: 'Tools', link: '/repair/tools' },
|
{ text: 'Tools', link: '/repair/tools' },
|
||||||
],
|
],
|
||||||
'/archived': sidebarArchived
|
'/archived': sidebarArchived,
|
||||||
},
|
},
|
||||||
editLink: {
|
editLink: {
|
||||||
pattern: 'https://github.com/nbtca/documents/edit/main/:path',
|
pattern: 'https://github.com/nbtca/documents/edit/main/:path',
|
||||||
text: 'Edit this page on GitHub'
|
text: 'Edit this page on GitHub',
|
||||||
},
|
},
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{ icon: 'github', link: 'https://github.com/nbtca/documents' }
|
{ icon: 'github', link: 'https://github.com/nbtca/documents' },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
ignoreDeadLinks: true,
|
ignoreDeadLinks: true,
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
})
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue