Skip to content

Commit 87bdd7c

Browse files
committed
Add patch for page rename
1 parent 290d7ee commit 87bdd7c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/content-modules/adjust-pages.pl

+6-5
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ ()
9898
&& applyPatchOrPrintMsgIf('2025-01-23-event-aliases', 'spec', '1.41.0');
9999

100100
my $aliases = '^( - )(event-(api|sdk))$';
101-
s|$aliases|$1./$2|g if /$aliases/;
101+
s|$aliases|$1./$2|;
102102
}
103103

104-
sub patchSemConvEmitAnEvent() {
104+
sub patchSemConv1_30_0() {
105105
return unless $ARGV =~ /^tmp\/semconv\/docs\//
106106
&& applyPatchOrPrintMsgIf('2025-01-24-emit-an-event', 'semconv', '1.30.0');
107107

108108
s|Emit Event API|Log API|;
109-
my $path = '(docs/specs/otel/logs/api.md#emit-a)n-event';
110-
s|$path|$1-logrecord|g if /$path/;
109+
s|(docs/specs/otel/logs/api.md#emit-a)n-event|$1-logrecord|;
110+
s|\[semantic-convention-groups\]|[group-stability]|;
111111
}
112112

113113
sub getVersFromSubmodule() {
@@ -152,6 +152,7 @@ ()
152152
$lineNum++;
153153
last if /^-?-->/;
154154
patchEventAliases();
155+
patchSemConv1_30_0();
155156
$frontMatterFromFile .= $_;
156157
}
157158
next;
@@ -231,7 +232,7 @@ ()
231232

232233
s|\]\((proto/opamp.proto)\)|]($opAmpSpecRepoUrl/blob/main/$1)|;
233234

234-
patchSemConvEmitAnEvent();
235+
patchSemConv1_30_0();
235236

236237
print;
237238
}

0 commit comments

Comments
 (0)