🐛 fix(test): skip external root doc links
This commit is contained in:
parent
b067fc1e9d
commit
8df3883ca5
|
|
@ -63,6 +63,14 @@ check_file_link() {
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 跳过第三方文档的根路径链接(不带协议的外部路径)
|
||||||
|
case "$target_path" in
|
||||||
|
/en/docs/*)
|
||||||
|
SKIPPED_LINKS=$((SKIPPED_LINKS + 1))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# 构建绝对路径
|
# 构建绝对路径
|
||||||
local absolute_path
|
local absolute_path
|
||||||
if echo "$target_path" | grep -q "^/"; then
|
if echo "$target_path" | grep -q "^/"; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue