Update sidebar.ts

全部默认收起,防止开发指南翻半天才能找到需要的模块,并和官网特性同步
This commit is contained in:
sevenstars
2025-03-18 13:30:30 +08:00
committed by GitHub
parent e0e8ad3192
commit cddedc3988

View File

@@ -102,7 +102,7 @@ async function generateSidebar(): Promise<Record<string, SidebarItem[]>> {
text: displayText,
items: [],
order,
collapsed: i < 2 ? false : DEFAULT_COLLAPSED,
collapsed: DEFAULT_COLLAPSED,
// 为目录添加活动匹配模式
activeMatch: i === 0 ? `^/${segment}(?:/|$)` : undefined
};