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:
@@ -1,7 +1,9 @@
|
||||
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
|
||||
|
||||
/**
|
||||
* 计算机组成原理
|
||||
*/
|
||||
export const cppSidebar = [
|
||||
export const cppSidebar: SubjectSidebarConfig = [
|
||||
{
|
||||
text: '计算机引论',
|
||||
prefix: '计算机引论',
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
|
||||
|
||||
/**
|
||||
* 计算机网络
|
||||
*/
|
||||
export const cnSidebar = [
|
||||
export const cnSidebar: SubjectSidebarConfig = [
|
||||
{
|
||||
text: '体系结构',
|
||||
prefix: '体系结构',
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
|
||||
|
||||
/**
|
||||
* 数据结构
|
||||
*/
|
||||
export const dsSidebar = [
|
||||
export const dsSidebar: SubjectSidebarConfig = [
|
||||
{
|
||||
text: '基础入门',
|
||||
prefix: '基础入门',
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links'
|
||||
|
||||
/**
|
||||
* 操作系统
|
||||
*/
|
||||
export const osSidebar = [
|
||||
export const osSidebar: SubjectSidebarConfig = [
|
||||
{
|
||||
text: '系统概述',
|
||||
prefix: '系统概述',
|
||||
|
||||
Reference in New Issue
Block a user