Skip to content

Commit 55ae78a

Browse files
authored
Update adjust-pages.pl: drop obsolete patch, adjust apply cond for others (#8874)
1 parent 12d6287 commit 55ae78a

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

scripts/content-modules/adjust-pages.pl

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,24 +155,12 @@ ()
155155
}{$1/v1.52/$3}gx;
156156
}
157157

158-
sub patchSpec_because_of_SemConv_DockerAPIVersions() {
159-
return unless
160-
# Restrict the patch to the proper spec, and section or file:
161-
$ARGV =~ m|^tmp/semconv/docs/|
162-
&&
163-
applyPatchOrPrintMsgIf('2025-11-21-docker-api-versions', 'semconv', '1.38.0');
164-
165-
s{
166-
(https://docs.docker.com/reference/api/engine/version)/v1.(43|51)/(\#tag/)
167-
}{$1/v1.52/$3}gx;
168-
}
169-
170158
sub patchSpec_because_of_SemConv_DatabaseRenamedToDb() {
171159
return unless
172160
# Restrict the patch to the proper spec, and section or file:
173161
# Note that here we replace links into semconv from the spec
174162
$ARGV =~ m|^tmp/otel/specification/|
175-
&& applyPatchOrPrintMsgIf('2025-11-26-database-section-renamed-to-db', 'semconv', '1.39.0');
163+
&& applyPatchOrPrintMsgIf('2025-11-26-database-section-renamed-to-db', 'spec', '1.53.0');
176164

177165
# Give infor about the patch, see:
178166
# https://github.com/open-telemetry/opentelemetry.io/pull/8311#issue-3577941378
@@ -184,12 +172,13 @@ ()
184172
sub patchSpec_because_of_SemConv_MetricRPCServerDurationRenamedToMetricRPCServerCallDuration() {
185173
return unless
186174
$ARGV =~ m|^tmp/otel/specification/|
187-
&& applyPatchOrPrintMsgIf('2025-12-05-metric-rpc-server-duration-renamed-to-rpc-server-call-duration', 'semconv', '1.39.0');
175+
&& applyPatchOrPrintMsgIf('2025-12-05-metric-rpc-server-duration-renamed-to-rpc-server-call-duration', 'spec', '1.53.0');
188176

189177
# Give infor about the patch, see:
190178
# https://github.com/open-telemetry/opentelemetry-specification/pull/4778
191179

192180
# Replace the old metric anchor with the new one
181+
# cSpell:disable-next-line
193182
s|#metric-rpcserverduration|#metric-rpcservercallduration|g;
194183
}
195184

@@ -278,8 +267,6 @@ ()
278267
s|(\]\()/docs/|$1$specBasePath/semconv/|g;
279268
s|(\]:\s*)/docs/|$1$specBasePath/semconv/|;
280269
s|\((/model/.*?)\)|($semconvSpecRepoUrl/tree/v$semconvVers/$1)|g;
281-
282-
patchSpec_because_of_SemConv_DockerAPIVersions();
283270
}
284271

285272

0 commit comments

Comments
 (0)