diff options
author | Joel Hans <joel@netdata.cloud> | 2020-03-10 22:18:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 22:18:11 -0700 |
commit | 9f95a65442d009fa6b4083aadf35a803386f69fc (patch) | |
tree | 1216a022db7b0dabd7f0554b7651a8e46cd68611 /docs | |
parent | c696a10dd0ecde5fe79e5470f5f89c94a6ef714d (diff) |
Add proper parsing/stripping of comments around docs frontmatter (#8372)
* Quick fix to main docs page
* Strip frontmatter comments
* Fix for main README
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/generator/buildhtml.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/generator/buildhtml.sh b/docs/generator/buildhtml.sh index 6088291c5b..6626a56211 100755 --- a/docs/generator/buildhtml.sh +++ b/docs/generator/buildhtml.sh @@ -33,6 +33,9 @@ cp -a ./${GENERATOR_DIR}/custom ./${SRC_DIR}/ echo "Modifying README header" sed -i -e '0,/# Netdata /s//# Netdata Documentation\n\n/' ${SRC_DIR}/README.md +# Strip comments around frontmatter. +find ${SRC_DIR} -name '*.md' -exec sed -i "/<!--/d;/-->/d;" {} \; + # Remove all GA tracking code find ${SRC_DIR} -name "*.md" -print0 | xargs -0 sed -i -e 's/\[!\[analytics.*UA-64295674-3)\]()//g' |