mirror of
https://github.com/netdata/netdata.git
synced 2025-04-28 22:52:30 +00:00
Add proper parsing/stripping of comments around docs frontmatter (#8372)
* Quick fix to main docs page * Strip frontmatter comments * Fix for main README
This commit is contained in:
parent
c696a10dd0
commit
9f95a65442
3 changed files with 4 additions and 8 deletions
|
@ -1,10 +1,3 @@
|
|||
<!--
|
||||
---
|
||||
title: "Netdata Documentation"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/DOCUMENTATION.md
|
||||
---
|
||||
-->
|
||||
|
||||
# Netdata Documentation
|
||||
|
||||
**Netdata is real-time health monitoring and performance troubleshooting for systems and applications.** It helps you
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
---
|
||||
title: "Netdata [](https://travis-ci.com/netdata/netdata) [](https://bestpractices.coreinfrastructure.org/projects/2231) [](https://www.gnu.org/licenses/gpl-3.0) [](<>)"
|
||||
title: "Netdata"
|
||||
custom_edit_url: https://github.com/netdata/netdata/edit/master/README.md
|
||||
---
|
||||
-->
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue