@cryptotaxi247 / netdata-1 / commits / 8fe00b47b

/docs/generator: use h1 heading as page title for collectors pages (#8009)

Ilya Mashchenko committed Feb 9, 2020 at 02:54 UTC 8fe00b47b82b37107d9ebb803403dd284ab8c6a2
1 file changed +3
docs/generator/buildhtml.sh
+3
@@ -36,6 +36,9 @@ sed -i -e '0,/# Netdata /s//# Netdata Documentation\n\n/' ${SRC_DIR}/README.md
36 # Remove all GA tracking code
37 find ${SRC_DIR} -name "*.md" -print0 | xargs -0 sed -i -e 's/\[!\[analytics.*UA-64295674-3)\]()//g'
38
39 +# Use h1 heading as page title for collectors pages
40 +find ${SRC_DIR}/collectors/ -type f -name 'README.md' -exec sed -i -e '1 s|^# \(.*\)|title: \1\n---\n\n# \1\n|' {} \;
41 +
42 # Remove specific files that don't belong in the documentation
43 declare -a EXCLUDE_LIST=(
44 "HISTORICAL_CHANGELOG.md"