mirror of
https://github.com/m1ngsama/documents.git
synced 2025-12-24 10:51:23 +00:00
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { withMermaid } from "vitepress-plugin-mermaid"
|
|
import { sidebar as sidebarArchived } from "../archived/sidebar"
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default withMermaid({
|
|
title: "计算机协会文档",
|
|
description: "Documents for nbtca",
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
nav: [
|
|
{ text: '流程', link: '/process/borrow-classroom' },
|
|
{ text: '维修', link: '/repair/guide' },
|
|
{ text: '存档', link: '/archived' }
|
|
],
|
|
search: {
|
|
provider: "local"
|
|
},
|
|
sidebar: {
|
|
'/process/': [
|
|
{ text: '借教室', link: '/process/2025/borrow-classroom' },
|
|
{ text: '申请第二课堂学分', link: '/process/2025/apply-for-credits' },
|
|
],
|
|
'/repair/': [
|
|
{ text: '维修操作指南', link: '/repair/guide' },
|
|
{ text: 'Tools', link: '/repair/tools' },
|
|
],
|
|
'/archived': sidebarArchived
|
|
},
|
|
editLink: {
|
|
pattern: 'https://github.com/nbtca/documents/edit/main/:path',
|
|
text: 'Edit this page on GitHub'
|
|
},
|
|
socialLinks: [
|
|
{ icon: 'github', link: 'https://github.com/nbtca/documents' }
|
|
]
|
|
},
|
|
ignoreDeadLinks: true,
|
|
lastUpdated: true,
|
|
})
|