$ ls -la `which man`
lrwxrwxrwx 1 root root 6 2023-06-10 /usr/bin/man -> mandoc
PDF
export LANG=pl_PL.utf8;
gunzip --to-stdout "$(man --where "bash")" \
| groff -mandoc -Kutf8 -mec -Tdvi >"bash_pl.dvi"
dvipdfm -pa4 "bash_pl.dvi"
MANPAGER=mupdf man -T pdf xterm
HTML
man -T html bash >bash.html
man -T html -O style=man.css xterm >xterm.html
man -T html -O style=~/.local/share/pandoc/css/58b.css bash >bash.html
man -w bspc
/usr/share/man/man1/bspc.1
pandoc --from man --to html5 -d html/simple < /usr/share/man/man1/bspc.1 > bspc.html
Refs
man -O tag=EXAMPLES mandoc