Skip to content

Commit 7c7b907

Browse files
authored
[CI] Cleanup of adjust-pages.pl script (open-telemetry#4672)
1 parent ce2e3e1 commit 7c7b907

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/content-modules/adjust-pages.pl

+6-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ ()
130130

131131
# Fix links that are to the title of the .md page
132132
# TODO: fix these in the spec
133-
s|(/context/api-propagators.md)#propagators-api|$1|g;
134-
s|(/semantic_conventions/faas.md)#function-as-a-service|$1|g;
135-
s|(/resource/sdk.md)#resource-sdk|$1|g;
136-
s|(event-api.md#)(data-model)|$1event-$2|g;
133+
s|(/context/api-propagators.md)#propagators-api|$1|g
134+
if $otelSpecVers le '1.34.0'; # Ensure that https://github.com/open-telemetry/opentelemetry-specification/pull/4080 is in the new release
135+
s|(/resource/sdk.md)#resource-sdk|$1|g
136+
if $semconvVers le '1.26.0'; # Ensure that https://github.com/open-telemetry/semantic-conventions/pull/1154 is in the new release
137+
s|(event-api.md#)(data-model)|$1event-$2|g
138+
if $otelSpecVers le '1.34.0'; # Ensure that https://github.com/open-telemetry/opentelemetry-specification/pull/4075 is in the new release
137139

138140
s|\.\.\/README.md\b|$otelSpecRepoUrl/|g if $ARGV =~ /specification._index/;
139141
s|\.\.\/README.md\b|..| if $ARGV =~ /specification.library-guidelines.md/;

0 commit comments

Comments
 (0)