Ulf Bartelt ulf.bartelt@gmx.net wrote:
On Tue, 2022-03-15 at 15:41 -0400, rjc@tilde.institute wrote:
On Tue, Mar 15, 2022 at 03:41:20PM +0000, yeti wrote:
On Tue, 2022-03-15 at 08:27 -0400, rjc@tilde.institute wrote:
Those who prefer viewing manual pages in a web browser need not seek further than mandoc(1), i.e.:
????????????????$ MANPAGER="lynx -force_html" man -T html institute
`w3mman` turns more stuff into links.
Actually, w3mman(1) seems to only support the Xr macro.
Patch it.
It also has the benefit of not being tied to any particular web browser
As does `/usr/local/libexec/w3m/cgi-bin/w3mman2html.cgi`, which does the conversion.
It looks like it should be possible to use the scheme outlined in man.cgi(8) to serve up the local manpages via a webby interface:
https://man.openbsd.org/man.cgi.8
For some reason that manpage isn't installed locally but anyways, maybe something worth looking into? Of course one could just point lynx at https://man.openbsd.org/ too. Wish they had a ToC listing all the sections on one page.