Skip to content

Commit a98e030

Browse files
authored
[CI/dep] Update docsy + submodule workaround (#3926)
1 parent 12b42d4 commit a98e030

File tree

4 files changed

+13
-59
lines changed

4 files changed

+13
-59
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[submodule "themes/docsy"]
22
path = themes/docsy
33
url = https://github.com/cncf/docsy.git
4-
docsy-pin = v0.8.0-17-g91efe35
4+
docsy-pin = v0.8.0-21-g435b2e0
55
[submodule "content-modules/opentelemetry-specification"]
66
path = content-modules/opentelemetry-specification
77
url = https://github.com/open-telemetry/opentelemetry-specification.git

layouts/partials/page-meta-links.html

-55
This file was deleted.

scripts/content-modules/adjust-pages.pl

+11-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
my $semconvSpecRepoUrl = 'https://github.com/open-telemetry/semantic-conventions';
1818
my $semConvRef = "$otelSpecRepoUrl/blob/main/semantic_conventions/README.md";
1919
my $specBasePath = '/docs/specs';
20-
my $path_base_for_github_subdir = "content/en$specBasePath";
2120
my %versions = qw(
2221
spec: 1.29.0
2322
otlp: 1.1.0
@@ -52,12 +51,22 @@ ()
5251
# TODO: add to front matter of OTel spec file and drop next line:
5352
$linkTitle = 'Design Goals' if $title eq 'Design Goals for OpenTelemetry Wire Protocol';
5453

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+
5564
# printf STDOUT "> $title -> $linkTitle\n";
5665
print "linkTitle: $linkTitle\n" if $linkTitle and $frontMatterFromFile !~ /linkTitle: /;
5766
print "$frontMatterFromFile" if $frontMatterFromFile;
5867
if ($ARGV =~ /otel\/specification\/(.*?)_index.md$/) {
5968
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";
6170
print " to: $1README.md\n";
6271
}
6372
print "---\n";

0 commit comments

Comments
 (0)