Skip to content

Commit

Permalink
[CI] Cleanup of adjust-pages.pl script (#4672)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Jun 13, 2024
1 parent ce2e3e1 commit 7c7b907
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/content-modules/adjust-pages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ ()

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

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

0 comments on commit 7c7b907

Please sign in to comment.