updated readme_generate_index.sh

pull/16/head
Hari Sekhon 2 months ago
parent 099012bad8
commit 926e57bfd7

@ -49,6 +49,9 @@ sed '/^[#[:space:]]*Index$/d' |
while read -r line; do
level="$(grep -Eo '^#+' <<< "$line" | tr -d '[:space:]' | wc -c)"
level="${level//[[:space:]]}"
if [ "$level" -gt 3 ]; then
continue
fi
title="${line##*# }"
# create relative links of just the anchor and not the repo URL prefix, it's more portable
link="$(

Loading…
Cancel
Save