简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM