diff options
-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 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" |