From 8df3883ca5164cbaf2488441e407c3595aa69261 Mon Sep 17 00:00:00 2001 From: csh Date: Thu, 22 Jan 2026 16:16:36 +0800 Subject: [PATCH] :bug: fix(test): skip external root doc links --- tests/integration/check_doc_links.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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