Merge pull request #31 from m1ngsama/fix/sidebar/30

fix the sidebar in process, add process of apply-for-credits
This commit is contained in:
clas 2025-04-03 18:30:46 +08:00 committed by GitHub
commit 9b54ee2829
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 67 additions and 16 deletions

View file

@ -1,38 +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/' },
{ text: '维修', link: '/repair/guide' }, { text: '维修', link: '/repair/guide' },
{ text: '存档', link: '/archived' } { text: '存档', link: '/archived' },
], ],
search: { search: {
provider: "local" provider: 'local',
}, },
sidebar: { sidebar: {
'/process/': [ '/process/': sidebarProcess,
{ text: '借教室', link: '/process/borrow-classroom' }
],
'/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,
}) });

View file

@ -0,0 +1,21 @@
# 申请第二课堂学分
:::info 维护信息
| 维护人 | 时间 |
| -------- | --------- |
| @ZaoAn0skiler | ??? - ??? |
:::
## 流程
```mermaid
graph TD
A[填写和修改二课堂学分申报表] --> B[确定人员、学分数额]
B --> C[交到校素拓部负责人]
C --> D{审核通过?}
D -- 否,修正 --> B
D -- 是 --> E[填写和修改学分申报名单]
E --> F[交到校素拓部负责人]
F --> G[社内留档一份]
```

View file

@ -20,4 +20,4 @@ graph TD
F --> G[在工作日提交给教室管理员] F --> G[在工作日提交给教室管理员]
G --> H[等待维修日] G --> H[等待维修日]
H --> I[提前1小时确认是否开门] H --> I[提前1小时确认是否开门]
``` ```

5
process/index.md Normal file
View file

@ -0,0 +1,5 @@
# 申报流程说明
所有的流程文件仅供参考,因为随着时间的变化,校方以及社内事务流程是否变更已不可察,请以社内管理人员为准
此处为方便全社人员快速掌握申报流程而编写的文档,请注意更新

26
process/sidebar.ts Normal file
View file

@ -0,0 +1,26 @@
export const sidebar = [
{
text: '说明',
link: '/process/index',
},
{
text: '2025版本',
collapsed: false,
base: '/process/2025/',
items: [
{
text: '申报流程',
items: [
{
text: '借教室',
link: 'borrow-classroom',
},
{
text: '申请第二课堂学分',
link: 'apply-for-credits',
},
]
}
]
}
]