Write HTML documentation to a file in the current directory.
(thing, forceload=0)
| 1762 | output.write(s) |
| 1763 | |
| 1764 | def writedoc(thing, forceload=0): |
| 1765 | """Write HTML documentation to a file in the current directory.""" |
| 1766 | object, name = resolve(thing, forceload) |
| 1767 | page = html.page(describe(object), html.document(object, name)) |
| 1768 | with open(name + '.html', 'w', encoding='utf-8') as file: |
| 1769 | file.write(page) |
| 1770 | print('wrote', name + '.html') |
| 1771 | |
| 1772 | def writedocs(dir, pkgpath='', done=None): |
| 1773 | """Write out HTML documentation for all modules in a directory tree.""" |