From dbb5d0e488c72dcd679bfddcd3380099b3f0d3bd Mon Sep 17 00:00:00 2001 From: chufan Date: Mon, 21 Sep 2026 17:16:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(docs):=20=E7=BB=9F=E4=B8=80=E5=90=84?= =?UTF-8?q?=E5=AD=A6=E7=A7=91=20sidebar=20=E9=85=8D=E7=BD=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 引入 SubjectSidebarConfig 类型,与站点侧边栏 permalink 解析逻辑对齐。 --- docs/ccp/cpp.sidebar.ts | 4 +++- docs/cn/cn.sidebar.ts | 4 +++- docs/ds/ds.sidebar.ts | 4 +++- docs/os/os.sidebar.ts | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/ccp/cpp.sidebar.ts b/docs/ccp/cpp.sidebar.ts index 8417290..43b6b38 100644 --- a/docs/ccp/cpp.sidebar.ts +++ b/docs/ccp/cpp.sidebar.ts @@ -1,7 +1,9 @@ +import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links' + /** * 计算机组成原理 */ -export const cppSidebar = [ +export const cppSidebar: SubjectSidebarConfig = [ { text: '计算机引论', prefix: '计算机引论', diff --git a/docs/cn/cn.sidebar.ts b/docs/cn/cn.sidebar.ts index 41c1077..56c3c4a 100644 --- a/docs/cn/cn.sidebar.ts +++ b/docs/cn/cn.sidebar.ts @@ -1,7 +1,9 @@ +import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links' + /** * 计算机网络 */ -export const cnSidebar = [ +export const cnSidebar: SubjectSidebarConfig = [ { text: '体系结构', prefix: '体系结构', diff --git a/docs/ds/ds.sidebar.ts b/docs/ds/ds.sidebar.ts index 7d5f22c..e81c4cb 100644 --- a/docs/ds/ds.sidebar.ts +++ b/docs/ds/ds.sidebar.ts @@ -1,7 +1,9 @@ +import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links' + /** * 数据结构 */ -export const dsSidebar = [ +export const dsSidebar: SubjectSidebarConfig = [ { text: '基础入门', prefix: '基础入门', diff --git a/docs/os/os.sidebar.ts b/docs/os/os.sidebar.ts index b52e40a..06700d2 100644 --- a/docs/os/os.sidebar.ts +++ b/docs/os/os.sidebar.ts @@ -1,7 +1,9 @@ +import type { SubjectSidebarConfig } from '../../.vuepress/config/plugins/resolve-sidebar-links' + /** * 操作系统 */ -export const osSidebar = [ +export const osSidebar: SubjectSidebarConfig = [ { text: '系统概述', prefix: '系统概述',