|
17 | 17 | my $semconvSpecRepoUrl = 'https://github.com/open-telemetry/semantic-conventions';
|
18 | 18 | my $semConvRef = "$otelSpecRepoUrl/blob/main/semantic_conventions/README.md";
|
19 | 19 | my $specBasePath = '/docs/specs';
|
20 |
| -my $path_base_for_github_subdir = "content/en$specBasePath"; |
21 | 20 | my %versions = qw(
|
22 | 21 | spec: 1.29.0
|
23 | 22 | otlp: 1.1.0
|
|
52 | 51 | # TODO: add to front matter of OTel spec file and drop next line:
|
53 | 52 | $linkTitle = 'Design Goals' if $title eq 'Design Goals for OpenTelemetry Wire Protocol';
|
54 | 53 |
|
| 54 | + # TODO: remove once all submodules have been updated in the context of https://github.com/open-telemetry/opentelemetry.io/issues/3922 |
| 55 | + $frontMatterFromFile =~ s|: content/en/docs/specs/otel/|: tmp/otel/specification|g; |
| 56 | + $frontMatterFromFile =~ s|: content/en/docs/specs/opamp/|: tmp/opamp/|g; |
| 57 | + $frontMatterFromFile =~ s|: content/en/docs/specs/semconv/|: tmp/semconv/docs/|g; |
| 58 | + $frontMatterFromFile =~ s|path_base_for_github_subdir:\n from: content/en/docs/specs/otlp/_index.md\n to: specification.md\n||; |
| 59 | + $frontMatterFromFile =~ s|github_subdir: docs\n path_base_for_github_subdir: content/en/docs/specs/otlp/|path_base_for_github_subdir: tmp/otlp/|g; |
| 60 | + |
| 61 | + $frontMatterFromFile =~ s|github_subdir: ''\npath_base_for_github_subdir:\n from: content/en/community/mission\\.md\n to: mission-vision-values.md|path_base_for_github_subdir: tmp/community|; |
| 62 | + $frontMatterFromFile =~ s|github_subdir: ''\npath_base_for_github_subdir: content/en/community/|path_base_for_github_subdir: tmp/community|; |
| 63 | + |
55 | 64 | # printf STDOUT "> $title -> $linkTitle\n";
|
56 | 65 | print "linkTitle: $linkTitle\n" if $linkTitle and $frontMatterFromFile !~ /linkTitle: /;
|
57 | 66 | print "$frontMatterFromFile" if $frontMatterFromFile;
|
58 | 67 | if ($ARGV =~ /otel\/specification\/(.*?)_index.md$/) {
|
59 | 68 | print "path_base_for_github_subdir:\n";
|
60 |
| - print " from: $path_base_for_github_subdir/otel/$1_index.md\n"; |
| 69 | + print " from: tmp/otel/specification/$1_index.md\n"; |
61 | 70 | print " to: $1README.md\n";
|
62 | 71 | }
|
63 | 72 | print "---\n";
|
|
0 commit comments