🐛 fix(test): skip external root doc links

This commit is contained in:
csh 2026-01-22 16:16:36 +08:00
parent b067fc1e9d
commit 8df3883ca5
1 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,14 @@ check_file_link() {
return 0
fi
# 跳过第三方文档的根路径链接(不带协议的外部路径)
case "$target_path" in
/en/docs/*)
SKIPPED_LINKS=$((SKIPPED_LINKS + 1))
return 0
;;
esac
# 构建绝对路径
local absolute_path
if echo "$target_path" | grep -q "^/"; then