Skip to content

Commit 328650e

Browse files
chalinmeswapnilk
authored andcommitted
[CI] adjust-pages.pl: handle corner case of intra-spec links (open-telemetry#5943)
1 parent 59522ea commit 328650e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/content-modules/adjust-pages.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ ($$)
134134
s|\(https://github.com/open-telemetry/opentelemetry-specification\)|($specBasePath/otel/)|;
135135
s|(\]\()/specification/|$1$specBasePath/otel/)|;
136136
s|\.\./semantic_conventions/README.md|$semConvRef| if $ARGV =~ /overview/;
137-
s|\.\./specification/(.*?\))|../otel/$1)|g if $ARGV =~ /otel\/specification/;
137+
s|\.\./specification/(.*?\))|../otel/$1|g if $ARGV =~ /otel\/specification/;
138138

139139
# Match markdown inline links or link definitions to OTel spec pages: "[...](URL)" or "[...]: URL"
140140
s|(\]:\s+\|\()https://github.com/open-telemetry/opentelemetry-specification/\w+/(main\|v$otelSpecVers)/specification(.*?\)?)|$1$specBasePath/otel$3|;

0 commit comments

Comments
 (0)