man2archwiki
Manpage to ArchWiki style HTML converter
Requirements
- mdocml (aka mandoc). Install it from AUR.
Usage
First make sure your $BROWSER
is set, for example:
export BROWSER=firefox
It's a good idea to put that line in your .bashrc
.
Then you can run this script:
./m section manpage_name
For example:
man2archwiki 8 pacman
or simply:
man2archwiki pacman
It will open the page in your browser.
The syntax is close to that of man
command: the name is required, but section
number can be ommited. If ommited, manpage will be searched in the same order as the
man command does it.
If you are not sure what section a manpage is, you can use apropos
, for example:
apropos pacman