diff --git a/content-modules/opentelemetry-proto b/content-modules/opentelemetry-proto index 793cfbd0a060..1608f92cf081 160000 --- a/content-modules/opentelemetry-proto +++ b/content-modules/opentelemetry-proto @@ -1 +1 @@ -Subproject commit 793cfbd0a0604cd042fc9ddc4cc1cd60c51c4229 +Subproject commit 1608f92cf08119f9aec237c910b200d1317ec696 diff --git a/scripts/content-modules/adjust-pages.pl b/scripts/content-modules/adjust-pages.pl index 89f0497ed049..0c449f9e9f8e 100755 --- a/scripts/content-modules/adjust-pages.pl +++ b/scripts/content-modules/adjust-pages.pl @@ -18,7 +18,7 @@ my $path_base_for_github_subdir = "content/en$specBasePath"; my %versions = qw( spec: 1.21.0 - otlp: main + otlp: 0.20.0 ); my $otelSpecVers = $versions{'spec:'}; my $otlpSpecVers = $versions{'otlp:'}; @@ -28,9 +28,11 @@ () if ($title eq 'OpenTelemetry Specification') { $title .= " $otelSpecVers"; $frontMatterFromFile =~ s/(linkTitle:) .*/$1 OTel $otelSpecVers/; + } elsif ($title eq 'OpenTelemetry Protocol Specification') { + $frontMatterFromFile =~ s/(title|linkTitle): .*/$& $otlpSpecVers/g; } my $titleMaybeQuoted = ($title =~ ':') ? "\"$title\"" : $title; - print "title: $titleMaybeQuoted\n"; + print "title: $titleMaybeQuoted\n" if $frontMatterFromFile !~ /title: /; ($linkTitle) = $title =~ /^OpenTelemetry (.*)/; print "linkTitle: $linkTitle\n" if $linkTitle and $frontMatterFromFile !~ /linkTitle: /; print "$frontMatterFromFile" if $frontMatterFromFile;