docs: gen-docs - Fix pandoc options and re-generate manpages

Tested with:

  LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man \
  --warnings -E UTF-8 -l -Tutf8 -Z docs/manpages/startup-config.5 > /dev/null
This commit is contained in:
Sebastien Badia 2021-01-31 23:35:26 +01:00
parent bf1e1d2d8a
commit b45df29dc7
No known key found for this signature in database
GPG key ID: 8716CE4614A452D8
4 changed files with 21 additions and 9 deletions

View file

@ -16,7 +16,7 @@ echo "Manpages generation …"
for src in src/man/*.md
do
pandoc -f markdown -t man "$src" > manpages/"$(basename "$src" .md)" && echo "$(basename "$src" .md) successfully built in docs/manpages directory" || echo "Unable to generate manpage from $src"
pandoc -s -t man "$src" -o manpages/"$(basename "$src" .md)" && echo "$(basename "$src" .md) successfully built in docs/manpages directory" || echo "Unable to generate manpage from $src"
done
# We then generate the rest of the documentation