From eff20702bc399b420bd870f4498aa78d4cf90dea Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Mon, 16 Oct 2023 15:18:01 -0400 Subject: [PATCH] Update OpAMP to latest and stop using relref for it (#3391) --- content-modules/opamp-spec | 2 +- scripts/content-modules/adjust-pages.pl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/content-modules/opamp-spec b/content-modules/opamp-spec index f83d3d480eff..7718250cb5d3 160000 --- a/content-modules/opamp-spec +++ b/content-modules/opamp-spec @@ -1 +1 @@ -Subproject commit f83d3d480effb77c70dc3b1a075562995cf647da +Subproject commit 7718250cb5d3982a366c06fb151d67b57048c9c7 diff --git a/scripts/content-modules/adjust-pages.pl b/scripts/content-modules/adjust-pages.pl index 77d7452ac0b3..46c7b82cfc40 100755 --- a/scripts/content-modules/adjust-pages.pl +++ b/scripts/content-modules/adjust-pages.pl @@ -155,7 +155,11 @@ () s|(\.\.\/)+(supplementary-guidelines\/compatibility\/[^)]+)|$otelSpecRepoUrl/tree/v$otelSpecVers/$2|g; # Rewrite inline links - s|\]\(([^:\)]*?\.md(#.*?)?)\)|]({{% relref "$1" %}})|g; + if ($ARGV =~ /\/tmp\/opamp/) { + s|\]\(([^:\)]*?)\.md((#.*?)?)\)|]($1/$2)|g; + } else { + s|\]\(([^:\)]*?\.md(#.*?)?)\)|]({{% relref "$1" %}})|g; + } # Rewrite link defs s|^(\[[^\]]+\]:\s*)([^:\s]*)(\s*(\(.*\))?)$|$1\{{% relref "$2" %}}$3|g;