I want to start a site with a collection of BSD man-pages, similar to man.cgi, but static HTML, and which includes all the stuff from the ports trees, too.
I've tried unpacking man/
from all the OpenBSD packages for a recent release, and I've noticed that although some packages provide mdoc
pages, in man/man?/page.?
, some others only provide terminal formatted pages in man/cat?/page.0
.
I can use groff -mdoc -Thtml
or mandoc -Txhtml
for the mdoc
files in man/man?/
, but how do I convert the cat
files from man/cat?/
into XHTML?
How do those man.cgi scripts at FreeBSD.org and NetBSD.org do this?