HTML man pages

Many websites host HTML rendering of man pages. How to make them yourself?

Stackoverflow always has an answer for those questions [1].

A tool without many dependencies is mandoc [2], and of course, it has its mandatory HTML man page there [3].

./mandoc -Thtml -Ostyle=mandoc.css ../man-pages-4.08/man1/mtrace.1 > ../mtrace.html

Where are the man pages?


Command-line parameters are usually listed as HTML definition lists with the tags: <dl> (definition list), <dt> (definition term), and <dd> (definition). It would not be too hard to extract those from the HTML output and make an index of all commands with each parameter as key and the corresponding (HTML-formated) documentation as value.


[1]Stackoverflow, "How do I convert Linux man pages to HTML",
[2]mandoc project,
[3]mandoc, man page,