diff --git a/tests/integration/check_doc_links.sh b/tests/integration/check_doc_links.sh index 57cfc8d..5b512a5 100644 --- a/tests/integration/check_doc_links.sh +++ b/tests/integration/check_doc_links.sh @@ -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