diff --git a/scripts/content-modules/adjust-pages.pl b/scripts/content-modules/adjust-pages.pl index f5df542d6a2d..05404907a7c8 100755 --- a/scripts/content-modules/adjust-pages.pl +++ b/scripts/content-modules/adjust-pages.pl @@ -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/;