Skip to content

Commit cb8eeb5

Browse files
committed
chore: update 1.10.x documentation branch and sidebar
Updated the linyaps 1.10.x submodule to track the docs/10.x branch instead of main, aligning with the documentation-focused development workflow. Completely restructured the sidebar configuration to improve content organization and navigation experience. The new structure groups related topics together with clearer section hierarchies and more intuitive categorization. Log: Updated documentation sidebar structure and navigation Influence: 1. Verify sidebar navigation works correctly in both Chinese and English 2. Check all links resolve to valid pages 3. Test collapsible sections functionality 4. Verify content organization matches new structure 5. Test cross-language navigation consistency chore: 更新1.10.x文档分支和侧边栏 将linyaps 1.10.x子模块从主分支切换到docs/10.x分支,以更好地适应文档开发 工作流。完全重构了侧边栏配置,改进内容组织和导航体验。新结构通过更清晰的 分层和直观的分类将相关主题分组。 Log: 更新文档侧边栏结构和导航 Influence: 1. 验证中英文侧边栏导航功能正常 2. 检查所有链接指向有效页面 3. 测试可折叠部分功能 4. 验证内容组织符合新结构 5. 测试跨语言导航一致性
1 parent 30f464f commit cb8eeb5

6 files changed

Lines changed: 429 additions & 317 deletions

File tree

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
url = https://github.com/OpenAtom-Linyaps/linyaps.git
1616
[submodule "linyaps/1.10.x"]
1717
path = linyaps/1.10.x
18+
branch = docs/10.x
1819
url = https://github.com/OpenAtom-Linyaps/linyaps.git

.vitepress/config.mts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,26 @@ const config: UserConfig = {
2020
// TODO 有关于manifests的死链接需要处理
2121
ignoreDeadLinks: [
2222
(url, source) => {
23-
console.log(source);
23+
// 1.10.x开始的版本只跳过README文件的死链接检查
24+
if (source.includes("1.10.x")) {
25+
if (
26+
source.includes("1.10.x/README.md") ||
27+
source.includes("1.10.x/README.zh_CN.md")
28+
) {
29+
return true;
30+
}
31+
return false;
32+
}
2433
if (source.endsWith("README.md")) {
34+
console.log("ignoreDeadLinks", source);
2535
return true;
2636
}
2737
if (source.endsWith("README.zh_CN.md")) {
38+
console.log("ignoreDeadLinks", source);
2839
return true;
2940
}
3041
if (url.endsWith("/manifests")) {
42+
console.log("ignoreDeadLinks", source);
3143
return true;
3244
}
3345
return false;

0 commit comments

Comments
 (0)