1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-10-29 11:27:00 +08:00

refactor(docs): 统一各学科 sidebar 配置类型定义

引入 SubjectSidebarConfig 类型,与站点侧边栏 permalink 解析逻辑对齐。
This commit is contained in:
chufan
2026-09-21 17:16:49 +08:00
parent 3757f5a615
commit dbb5d0e488
4 changed files with 12 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
/**
* 计算机组成原理
*/
export const cppSidebar = [
export const cppSidebar: SubjectSidebarConfig = [
{
text: '计算机引论',
prefix: '计算机引论',

View File

@@ -1,7 +1,9 @@
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
/**
* 计算机网络
*/
export const cnSidebar = [
export const cnSidebar: SubjectSidebarConfig = [
{
text: '体系结构',
prefix: '体系结构',

View File

@@ -1,7 +1,9 @@
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
/**
* 数据结构
*/
export const dsSidebar = [
export const dsSidebar: SubjectSidebarConfig = [
{
text: '基础入门',
prefix: '基础入门',

View File

@@ -1,7 +1,9 @@
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
/**
* 操作系统
*/
export const osSidebar = [
export const osSidebar: SubjectSidebarConfig = [
{
text: '系统概述',
prefix: '系统概述',