From 4e693c43236b8d8136e11ae522f42619b0de64fa Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 15 Jan 2025 15:20:45 -0500 Subject: [PATCH] [CI] adjust-pages.pl: handle corner case of intra-spec links --- scripts/content-modules/adjust-pages.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/content-modules/adjust-pages.pl b/scripts/content-modules/adjust-pages.pl index 3fdba0d9e9b8..efbfb9eec587 100755 --- a/scripts/content-modules/adjust-pages.pl +++ b/scripts/content-modules/adjust-pages.pl @@ -134,7 +134,7 @@ ($$) s|\(https://github.com/open-telemetry/opentelemetry-specification\)|($specBasePath/otel/)|; s|(\]\()/specification/|$1$specBasePath/otel/)|; s|\.\./semantic_conventions/README.md|$semConvRef| if $ARGV =~ /overview/; - s|\.\./specification/(.*?\))|../otel/$1)|g if $ARGV =~ /otel\/specification/; + s|\.\./specification/(.*?\))|../otel/$1|g if $ARGV =~ /otel\/specification/; # Match markdown inline links or link definitions to OTel spec pages: "[...](URL)" or "[...]: URL" s|(\]:\s+\|\()https://github.com/open-telemetry/opentelemetry-specification/\w+/(main\|v$otelSpecVers)/specification(.*?\)?)|$1$specBasePath/otel$3|;