I use the pydoc module to output documentation for some types that I defined using API C. The types I want to document do not exist until the interpreter is built into my C program, so I cannot use the pydoc command.
I get my C code to call a function that does something like this:
d = pydoc.HTMLDoc()
content = d.docmodule(sys.modules["mymodule"])
This works, but generates HTML pages with hard-coded "file: /" link targets. Is there a way to use relative paths for links?
(Additional points for a better way to document types defined in API C)
thank
source
share