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;