build(gen): fix markdown toctree

Filename was wrong as well as the format itself.
This commit is contained in:
Renken 2023-04-10 14:43:31 +02:00
parent 97cc3f2a9b
commit 973cbca918
Signed by: renken
GPG key ID: 1F2BB159B645E575

View file

@ -16,16 +16,16 @@ for dir in "$archive" "$archive/$year" "$archive/$year/$month"; do
if [ "$name" = archive ]; then
name=Archive
fi
<<-EOF cat - >"$dir/index.rst"
<<-EOF cat - >"$dir/index.md"
# $name
\`\`\`{toctree}
---
$(printf '\t')glob
$(printf '\t')maxdepth: 1
maxdepth: 1
glob:
---
$(printf '\t')*/index
*/index
\`\`\`
EOF
fi