Commit ce841965 authored by Antoine Beaupré's avatar Antoine Beaupré

add mandoc renderer

parent 2ccd1eb8
......@@ -320,6 +320,16 @@ class W3mRenderer(CommandRenderer, ManpageRenderer):
data['content'] = content
class MandocRenderer(CommandRenderer, ManpageRenderer):
'''render pages with mandoc
.. todo:: this assumes cross-references are done with the ``.Xr``
macro, which is unfortunately not often the case in my
tests. so some manual cross-ref will be required here.
command = 'mandoc -T html -Ofragment,man=../man%%S/%%N.%%S.html %(source)s'
class Man2htmlRenderer(CommandRenderer, ManpageRenderer):
'''render manpages with man2html'''
command = 'man2html %(source)s'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment