Skip to content

Commit

Permalink
[CI] adjust-pages.pl: handle corner case of intra-spec links
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jan 15, 2025
1 parent 9728579 commit 4e693c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/content-modules/adjust-pages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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|;
Expand Down

0 comments on commit 4e693c4

Please sign in to comment.