From 8d28b04250a45cc0a82a169e0c2a7f4c0f356de1 Mon Sep 17 00:00:00 2001 From: wrj97 Date: Fri, 26 Sep 2025 16:40:09 +0800 Subject: [PATCH 1/2] docs: remove convert appimage documentation from sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed the "Convert appimage" documentation link from the sidebar navigation for version 1.9.x. This change was made because the appimage conversion feature is no longer supported or maintained in the current version, making the documentation obsolete. Influence: 1. Verify the sidebar navigation no longer shows the "Convert appimage" option 2. Check that all remaining sidebar links are functional 3. Ensure no internal links reference the removed documentation docs: 从侧边栏移除转换 appimage 文档 从 1.9.x 版本的侧边栏导航中移除了"转换 appimage"文档链接。此更改是因为 appimage 转换功能在当前版本中不再受支持或维护,使得该文档过时。 Influence: 1. 验证侧边栏导航不再显示"转换 appimage"选项 2. 检查所有剩余的侧边栏链接是否正常 3. 确保没有内部链接引用已移除的文档 --- .vitepress/sidebar/1.9.x.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.vitepress/sidebar/1.9.x.json b/.vitepress/sidebar/1.9.x.json index b581e4f..85771ad 100644 --- a/.vitepress/sidebar/1.9.x.json +++ b/.vitepress/sidebar/1.9.x.json @@ -108,10 +108,6 @@ "text": "运行应用", "link": "/guide/ll-builder/run.md" }, - { - "text": "转换 appimage", - "link": "/guide/ll-builder/convert.md" - }, { "text": "导出 layer 文件", "link": "/guide/ll-builder/export.md" From 600dfbf33656658390220b65318586275618ee70 Mon Sep 17 00:00:00 2001 From: wrj97 Date: Fri, 26 Sep 2025 17:10:37 +0800 Subject: [PATCH 2/2] feat: add sidebar link validation script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Added prebuild script to validate sidebar links 2. Created new shell script sidebar-link-check.sh 3. Script generates link-check.md with all sidebar links 4. Runs automatically before build process Log: Added automatic sidebar link validation before builds Influence: 1. Verify script runs correctly during build process 2. Check generated link-check.md contains all expected links 3. Test with different sidebar configurations 4. Ensure script doesn't break existing build process feat: 添加侧边栏链接验证脚本 1. 添加构建前脚本用于验证侧边栏链接 2. 创建新的shell脚本sidebar-link-check.sh 3. 脚本生成包含所有侧边栏链接的link-check.md文件 4. 在构建过程前自动运行 Log: 新增构建前自动验证侧边栏链接功能 Influence: 1. 验证脚本在构建过程中是否正确运行 2. 检查生成的link-check.md是否包含所有预期链接 3. 使用不同的侧边栏配置进行测试 4. 确保脚本不会破坏现有的构建流程 --- .gitignore | 1 + .vitepress/sidebar/1.6.x.json | 56 ----------------------------------- .vitepress/sidebar/1.7.x.json | 16 ---------- .vitepress/sidebar/1.8.x.json | 18 +---------- .vitepress/sidebar/1.9.x.json | 10 +------ package.json | 1 + sidebar-link-check.sh | 5 ++++ 7 files changed, 9 insertions(+), 98 deletions(-) create mode 100755 sidebar-link-check.sh diff --git a/.gitignore b/.gitignore index 4043555..bba8015 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules cache dist .idea +linyaps/link-check.md \ No newline at end of file diff --git a/.vitepress/sidebar/1.6.x.json b/.vitepress/sidebar/1.6.x.json index 873cdf3..c2717c9 100644 --- a/.vitepress/sidebar/1.6.x.json +++ b/.vitepress/sidebar/1.6.x.json @@ -128,34 +128,6 @@ } ] }, - { - "collapsible": true, - "text": "ll-appimage-convert", - "items": [ - { - "text": "简介", - "link": "/guide/1.6.x/ll-appimage-convert/introduction.md" - }, - { - "text": "转换应用", - "link": "/guide/1.6.x/ll-appimage-convert/convert-appimage.md" - } - ] - }, - { - "collapsible": true, - "text": "ll-flatpak-convert", - "items": [ - { - "text": "简介", - "link": "/guide/1.6.x/ll-flatpak-convert/introduction.md" - }, - { - "text": "转换应用", - "link": "/guide/1.6.x/ll-flatpak-convert/convert-flatpak.md" - } - ] - }, { "collapsible": true, "text": "调试应用", @@ -308,34 +280,6 @@ } ] }, - { - "collapsible": true, - "text": "ll-appimage-convert", - "items": [ - { - "text": "Introduction", - "link": "/en/guide/1.6.x/ll-appimage-convert/introduction.md" - }, - { - "text": "Conversion application", - "link": "/en/guide/1.6.x/ll-appimage-convert/convert-appimage.md" - } - ] - }, - { - "collapsible": true, - "text": "ll-flatpak-convert", - "items": [ - { - "text": "Introduction", - "link": "/en/guide/1.6.x/ll-flatpak-convert/introduction.md" - }, - { - "text": "Conversion application", - "link": "/en/guide/1.6.x/ll-flatpak-convert/convert-flatpak.md" - } - ] - }, { "collapsible": true, "text": "Debug App", diff --git a/.vitepress/sidebar/1.7.x.json b/.vitepress/sidebar/1.7.x.json index 923516b..52bf972 100644 --- a/.vitepress/sidebar/1.7.x.json +++ b/.vitepress/sidebar/1.7.x.json @@ -84,10 +84,6 @@ "text": "运行应用", "link": "/guide/1.7.x/ll-builder/run.md" }, - { - "text": "转换 appimage", - "link": "/guide/1.7.x/ll-builder/convert.md" - }, { "text": "导出 layer 文件", "link": "/guide/1.7.x/ll-builder/export.md" @@ -95,10 +91,6 @@ { "text": "配置文件", "link": "/guide/1.7.x/ll-builder/manifests.md" - }, - { - "text": "上架应用到商店", - "link": "/guide/1.7.x/ll-builder/github.md" } ] }, @@ -264,10 +256,6 @@ "text": "Run Compiled App", "link": "/en/guide/1.7.x/ll-builder/run.md" }, - { - "text": "Convert AppImage", - "link": "/en/guide/1.7.x/ll-builder/convert.md" - }, { "text": "Export Layer File", "link": "/en/guide/1.7.x/ll-builder/export.md" @@ -275,10 +263,6 @@ { "text": "Manifests", "link": "/en/guide/1.7.x/ll-builder/manifests.md" - }, - { - "text": "App To Store", - "link": "/en/guide/1.7.x/ll-builder/github.md" } ] }, diff --git a/.vitepress/sidebar/1.8.x.json b/.vitepress/sidebar/1.8.x.json index bdb0071..ad714ff 100644 --- a/.vitepress/sidebar/1.8.x.json +++ b/.vitepress/sidebar/1.8.x.json @@ -44,7 +44,7 @@ }, { "text": "更新应用", - "link": "/guide/1.8.x/ll-cli/update.md" + "link": "/guide/1.8.x/ll-cli/upgrade.md" }, { "text": "查看运行中的应用", @@ -92,10 +92,6 @@ "text": "运行应用", "link": "/guide/1.8.x/ll-builder/run.md" }, - { - "text": "转换 appimage", - "link": "/guide/1.8.x/ll-builder/convert.md" - }, { "text": "导出 layer 文件", "link": "/guide/1.8.x/ll-builder/export.md" @@ -103,10 +99,6 @@ { "text": "配置文件", "link": "/guide/1.8.x/ll-builder/manifests.md" - }, - { - "text": "上架应用到商店", - "link": "/guide/1.8.x/ll-builder/github.md" } ] }, @@ -280,10 +272,6 @@ "text": "Run Compiled App", "link": "/en/guide/1.8.x/ll-builder/run.md" }, - { - "text": "Convert AppImage", - "link": "/en/guide/1.8.x/ll-builder/convert.md" - }, { "text": "Export Layer File", "link": "/en/guide/1.8.x/ll-builder/export.md" @@ -291,10 +279,6 @@ { "text": "Manifests", "link": "/en/guide/1.8.x/ll-builder/manifests.md" - }, - { - "text": "App To Store", - "link": "/en/guide/1.8.x/ll-builder/github.md" } ] }, diff --git a/.vitepress/sidebar/1.9.x.json b/.vitepress/sidebar/1.9.x.json index 85771ad..ef1bd53 100644 --- a/.vitepress/sidebar/1.9.x.json +++ b/.vitepress/sidebar/1.9.x.json @@ -60,7 +60,7 @@ }, { "text": "更新应用", - "link": "/guide/ll-cli/update.md" + "link": "/guide/ll-cli/upgrade.md" }, { "text": "查看运行中的应用", @@ -304,10 +304,6 @@ "text": "Run Compiled App", "link": "/en/guide/ll-builder/run.md" }, - { - "text": "Convert AppImage", - "link": "/en/guide/ll-builder/convert.md" - }, { "text": "Export Layer File", "link": "/en/guide/ll-builder/export.md" @@ -315,10 +311,6 @@ { "text": "Manifests", "link": "/en/guide/ll-builder/manifests.md" - }, - { - "text": "App To Store", - "link": "/en/guide/ll-builder/github.md" } ] }, diff --git a/package.json b/package.json index ce7e5c2..c7e7767 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ }, "scripts": { "dev": "vitepress dev", + "prebuild": "sh sidebar-link-check.sh", "build": "vitepress build", "preview": "vitepress preview" }, diff --git a/sidebar-link-check.sh b/sidebar-link-check.sh new file mode 100755 index 0000000..59843eb --- /dev/null +++ b/sidebar-link-check.sh @@ -0,0 +1,5 @@ +rm linyaps/link-check.md +for filename in $(ls .vitepress/sidebar/); do + echo "generating links for $filename" + cat .vitepress/sidebar/$filename | grep 'link' | awk '{print $2'} | xargs -i echo -e "[$filename: {}]({})\n\n" >> linyaps/link-check.md +done \ No newline at end of file