Skip to content

Commit d63caf5

Browse files
authored
[infra] Adjust-pages script cleanup and semconv vers tweak (#4944)
1 parent ec0b946 commit d63caf5

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

scripts/content-modules/adjust-pages.pl

+2-15
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,16 @@ ()
9696
s|(\]\()/docs/|$1$specBasePath/semconv/|g;
9797
s|(\]:\s*)/docs/|$1$specBasePath/semconv/|;
9898

99-
s|\((/model/.*?)\)|($semconvSpecRepoUrl/blob/main/$1)|g;
99+
s|\((/model/.*?)\)|($semconvSpecRepoUrl/tree/v$semconvVers/$1)|g;
100100

101-
# TODO: drop after fix of https://github.com/open-telemetry/semantic-conventions/issues/419
101+
# TODO: drop after fix of https://github.com/open-telemetry/semantic-conventions/pull/1316
102102
s|#instrument-advice\b|#instrument-advisory-parameters|g;
103-
# TODO: drop after fix of https://github.com/open-telemetry/semantic-conventions/pull/883
104-
s|(\]\(process.md)#process(\))|$1$2|g;
105103

106104
# TODO: drop after fix of https://github.com/open-telemetry/semantic-conventions/issues/1313
107105
s|(/database/database-spans\.md)#batch-operations|$1|g;
108106
s|(/messaging/messaging-spans\.md)#common-messaging-operations|$1|g;
109107
}
110108

111-
# TODO: drop after fix of https://github.com/open-telemetry/semantic-conventions/pull/1065
112-
s|opentelemetry-specification/tree/v1\.33\.0/specification/metrics|semantic-conventions/blob/v1\.26\.0/docs/general|g if $ARGV =~ /\/tmp\/semconv\/docs\/system\/container-metrics/;
113109

114110
# SPECIFICATION custom processing
115111

@@ -134,15 +130,6 @@ ()
134130
s|(\]\()([^)]+\.png\))|$1../$2|g if $ARGV =~ /\/tmp\/semconv\/docs\/general\/attributes/;
135131
s|(\]\()([^)]+\.png\))|$1../$2|g if $ARGV =~ /\/tmp\/semconv\/docs\/http\/http-spans/;
136132

137-
# Fix links that are to the title of the .md page
138-
# TODO: fix these in the spec
139-
s|(/context/api-propagators.md)#propagators-api|$1|g
140-
if $otelSpecVers le '1.34.0'; # Ensure that https://github.com/open-telemetry/opentelemetry-specification/pull/4080 is in the new release
141-
s|(/resource/sdk.md)#resource-sdk|$1|g
142-
if $semconvVers le '1.26.0'; # Ensure that https://github.com/open-telemetry/semantic-conventions/pull/1154 is in the new release
143-
s|(event-api.md#)(data-model)|$1event-$2|g
144-
if $otelSpecVers le '1.34.0'; # Ensure that https://github.com/open-telemetry/opentelemetry-specification/pull/4075 is in the new release
145-
146133
s|\.\.\/README.md\b|$otelSpecRepoUrl/|g if $ARGV =~ /specification._index/;
147134
s|\.\.\/README.md\b|..| if $ARGV =~ /specification.library-guidelines.md/;
148135

0 commit comments

Comments
 (0)