Python Pdoc - how to export html with separate css file?

726 Views Asked by At

I am using pdoc function:

def html(module_name, docfilter=None, allsubmodules=False, external_links=False, link_prefix='', source=True) 

But according to documentation on http://pdoc.burntsushi.net/pdoc#pdoc.html I am unable to find out how to export HTML separated from CSS.

1

There are 1 best solutions below

0
On

Pdoc uses a html.mako template file that includes CSS stylesheets. To change CSS, one needs to either copy and modify the whole HTML template, or override just the included head.mako to include additional styles. In either case one then needs to run pdoc with --template-dir switch:

$ pdoc --html --template-dir=my_templates my_project