build(gen): fix markdown toctree
Filename was wrong as well as the format itself.
This commit is contained in:
parent
97cc3f2a9b
commit
973cbca918
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue