I am developing a man page using rst. While I am doing that, I would like a quick way of displaying my end result. I currently do it like this:
rst2man < the-man-page.rst > tmp
man ./tmp
Is there a way to do this with a one liner without creating a temporary file? I have tried to pipe the output directly to the man command.
You can use the --local-file
argument of the man command and specify -
to read from stdin.
Example:
rst2man < the-man-page.rst | man -l -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With