Skip to content

Commit

Permalink
Update OpAMP to latest and stop using relref for it (#3391)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Oct 16, 2023
1 parent cf996c8 commit eff2070
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content-modules/opamp-spec
Submodule opamp-spec updated 3 files
+56 −0 faq.md
+64 −9 proto/opamp.proto
+232 −77 specification.md
6 changes: 5 additions & 1 deletion scripts/content-modules/adjust-pages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eff2070

Please sign in to comment.