From 763bd5bccdd0e0af6bae80e8ca6822737e3da895 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 11 Jul 2023 11:36:08 -0400 Subject: [PATCH] [CI] Report link-check error when external URL used for local doc page --- .markdown_link_check_config.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.markdown_link_check_config.json b/.markdown_link_check_config.json index dac3ae97b..f8cf2cdd0 100644 --- a/.markdown_link_check_config.json +++ b/.markdown_link_check_config.json @@ -6,8 +6,12 @@ ], "replacementPatterns": [ { - "pattern": "^/", - "replacement": "{{BASEURL}}/" + "pattern": "^/", + "replacement": "{{BASEURL}}/" + }, + { + "pattern": "^https://github.com/open-telemetry/opentelemetry-proto/(blob|tree)/[^/]+/docs/", + "replacement": "LINK-CHECK-ERROR-USE-LOCAL-PATH-TO-DOC-PAGE-NOT-EXTERNAL-URL/" } ], "retryOn429": true,