Skip to content

Commit

Permalink
[infra] adjust-pages.pl: drop spec-patching code (#4010)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Feb 16, 2024
1 parent dd89004 commit 77c4fac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/content-modules/adjust-pages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ ()
$linkTitle = 'Design Goals' if $title eq 'Design Goals for OpenTelemetry Wire Protocol';

# TODO: remove once all submodules have been updated in the context of https://github.com/open-telemetry/opentelemetry.io/issues/3922
$frontMatterFromFile =~ s|: content/en/docs/specs/otel/|: tmp/otel/specification|g;
$frontMatterFromFile =~ s|: content/en/docs/specs/opamp/|: tmp/opamp/|g;
$frontMatterFromFile =~ s|: content/en/docs/specs/semconv/|: tmp/semconv/docs/|g;
$frontMatterFromFile =~ s|path_base_for_github_subdir:\n from: content/en/docs/specs/otlp/_index.md\n to: specification.md\n||;
Expand All @@ -61,11 +60,6 @@ ()
# printf STDOUT "> $title -> $linkTitle\n";
print "linkTitle: $linkTitle\n" if $linkTitle and $frontMatterFromFile !~ /linkTitle: /;
print "$frontMatterFromFile" if $frontMatterFromFile;
if ($ARGV =~ /otel\/specification\/(.*?)_index.md$/) {
print "path_base_for_github_subdir:\n";
print " from: tmp/otel/specification/$1_index.md\n";
print " to: $1README.md\n";
}
print "---\n";
}

Expand Down

0 comments on commit 77c4fac

Please sign in to comment.