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].

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

Where are the man pages?

Idea

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.

References

[1]Stackoverflow, "How do I convert Linux man pages to HTML", http://unix.stackexchange.com/a/246968
[2]mandoc project, http://mdocml.bsd.lv
[3]mandoc, man page, http://mdocml.bsd.lv/man/mandoc.1.html