diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-01-07 04:55:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 04:55:27 -0500 |
commit | c0ae9b32f47a1af872af1888f53dedfda8a08df7 (patch) | |
tree | 8ff249d9fab36689f3197d6a1bd61ce6825cdd18 | |
parent | 2c255bc7f063e8dc1c2a8f5ed5b8fae0f09a5cd1 (diff) |
Fix buildyaml.sh script so that docs generation works correctly. (#7662)
* Fix buildyaml.sh script so that docs generation works correctly.
* Replace a few NUL's that were missed by the previous commit.
-rwxr-xr-x | docs/generator/buildyaml.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generator/buildyaml.sh b/docs/generator/buildyaml.sh index 73c3295697..85703f7989 100755 --- a/docs/generator/buildyaml.sh +++ b/docs/generator/buildyaml.sh @@ -37,7 +37,7 @@ navpart() { if [ -z "$maxdepth" ]; then maxdepth=1; fi if [[ -n $excludefirstlevel ]]; then mindepth=2; else mindepth=1; fi - for f in $(find $dir -mindepth $mindepth -maxdepth $maxdepth -name "${file}.md" -printf '%h\0%d\0%p\n' | sort -t '\0' -n | awk -F '\0' '{print $3}'); do + for f in $(find $dir -mindepth $mindepth -maxdepth $maxdepth -name "${file}.md" -printf '%h|%d|%p\n' | sort -t '|' -n | awk -F '|' '{print $3}'); do # If I'm adding a section, I need the child links to be one level deeper than the requested level in "tabs" if [ -z "$section" ]; then echo "$spc- '$f'" |