Write HTML documentation to a file in the current directory.
(thing, forceload=0)
| 1808 | output.write(s) |
| 1809 | |
| 1810 | def writedoc(thing, forceload=0): |
| 1811 | """Write HTML documentation to a file in the current directory.""" |
| 1812 | object, name = resolve(thing, forceload) |
| 1813 | page = html.page(describe(object), html.document(object, name)) |
| 1814 | with open(name + '.html', 'w', encoding='utf-8') as file: |
| 1815 | file.write(page) |
| 1816 | print('wrote', name + '.html') |
| 1817 | |
| 1818 | def writedocs(dir, pkgpath='', done=None): |
| 1819 | """Write out HTML documentation for all modules in a directory tree.""" |