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
|
if [ "$name" = archive ]; then
|
||||||
name=Archive
|
name=Archive
|
||||||
fi
|
fi
|
||||||
<<-EOF cat - >"$dir/index.rst"
|
<<-EOF cat - >"$dir/index.md"
|
||||||
# $name
|
# $name
|
||||||
|
|
||||||
\`\`\`{toctree}
|
\`\`\`{toctree}
|
||||||
---
|
---
|
||||||
$(printf '\t')glob
|
maxdepth: 1
|
||||||
$(printf '\t')maxdepth: 1
|
glob:
|
||||||
---
|
---
|
||||||
|
|
||||||
$(printf '\t')*/index
|
*/index
|
||||||
\`\`\`
|
\`\`\`
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue