From 100957b19b6266fcef9f8dbed94df17c8edf4b76 Mon Sep 17 00:00:00 2001 From: Clas Wen Date: Sun, 30 Mar 2025 17:59:47 +0800 Subject: [PATCH] save --- .vitepress/config.mts | 44 +- index.md | 23 +- package.json | 2 + pnpm-lock.yaml | 1025 +++++++++++++++++++++++++++++++++++ process/borrow-classroom.md | 14 + repair/tools.md | 48 ++ 6 files changed, 1129 insertions(+), 27 deletions(-) create mode 100644 process/borrow-classroom.md create mode 100644 repair/tools.md diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 46977cd..a868abb 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -1,27 +1,45 @@ -import { defineConfig } from 'vitepress' import { getMeetingMinutesSidebar } from '../meetings/sidebar' - +import { withMermaid } from "vitepress-plugin-mermaid" // https://vitepress.dev/reference/site-config -export default defineConfig({ - title: "Documents", +export default withMermaid({ + title: "计算机协会文档", description: "Documents for nbtca", themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ - { text: 'Home', link: '/' }, - { text: '会议记录', link: '/meetings' } + { text: '会议记录', link: '/meetings' }, + { text: '流程', link: '/process/borrow-classroom' }, + { text: '维修', link: '/repair/tools' } ], search: { provider: "local" }, - sidebar: [ - { - text: '会议记录', - link: '/meetings' - }, - ...getMeetingMinutesSidebar() - ], + sidebar: { + '/meetings/': [ + { + text: '会议记录', + link: '/meetings' + }, + ...getMeetingMinutesSidebar(), + ], + '/process/': [ + { + text: '流程', + items: [ + { text: '借教室', link: '/process/borrow-classroom' } + ] + } + ], + '/repair/': [ + { + text: '维修', + items: [ + { text: 'Tools', link: '/repair/tools' }, + ] + } + ] + }, editLink: { pattern: 'https://github.com/nbtca/documents/edit/main/:path', text: 'Edit this page on GitHub' diff --git a/index.md b/index.md index 9345c22..1efe0d2 100644 --- a/index.md +++ b/index.md @@ -3,9 +3,9 @@ layout: home hero: - name: "Documents" - text: "" - tagline: 计算机协会文档 + name: "NBTCA Documents" + text: "计算机协会文档" + tagline: To be at the intersection of technology and liberal arts. image: src: https://oss.nbtca.space/CA-logo.svg alt: VitePress @@ -13,18 +13,13 @@ hero: - theme: brand text: 会议记录 link: /meetings/index - # - theme: alt - # text: API Examples - # link: /api-examples + - theme: alt + text: 流程 + link: /process/borrow-classroom + - theme: alt + text: 维修 + link: /repair/tools -features: - - title: Feature A - details: Lorem ipsum dolor sit amet, consectetur adipiscing elit - - title: Feature B - details: Lorem ipsum dolor sit amet, consectetur adipiscing elit - - title: Feature C - details: Lorem ipsum dolor sit amet, consectetur adipiscing elit - ---