summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2020-02-09 02:54:14 +0300
committerGitHub <noreply@github.com>2020-02-08 15:54:14 -0800
commit8fe00b47b82b37107d9ebb803403dd284ab8c6a2 (patch)
tree3e4bd68f134bfd98c684665b33111a74d7dfd688 /docs
parentead874ae683cdd615c94b414a1605e416fcbd18f (diff)
/docs/generator: use h1 heading as page title for collectors pages (#8009)
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/generator/buildhtml.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/generator/buildhtml.sh b/docs/generator/buildhtml.sh
index 2467fa7d7c..6088291c5b 100755
--- a/docs/generator/buildhtml.sh
+++ b/docs/generator/buildhtml.sh
@@ -36,6 +36,9 @@ sed -i -e '0,/# Netdata /s//# Netdata Documentation\n\n/' ${SRC_DIR}/README.md
# Remove all GA tracking code
find ${SRC_DIR} -name "*.md" -print0 | xargs -0 sed -i -e 's/\[!\[analytics.*UA-64295674-3)\]()//g'
+# Use h1 heading as page title for collectors pages
+find ${SRC_DIR}/collectors/ -type f -name 'README.md' -exec sed -i -e '1 s|^# \(.*\)|title: \1\n---\n\n# \1\n|' {} \;
+
# Remove specific files that don't belong in the documentation
declare -a EXCLUDE_LIST=(
"HISTORICAL_CHANGELOG.md"