| | |
- Doc
-
- HTMLDoc
- TextDoc
- exceptions.Exception
-
- DocImportError
- Helper
- repr.Repr
-
- HTMLRepr
- TextRepr
- Scanner
-
- ModuleScanner
|
class HTMLDoc(Doc) |
| |
Formatter class for HTML documentation. |
| | |
- bigsection(self, title, *args)
- Format a section with a big heading.
- classlink(self, object, modname, *dicts)
- Make a link for a class.
- docclass(self, object, funcs={}, classes={})
- Produce HTML documentation for a class object.
- docmodule(self, object)
- Produce HTML documentation for a module object.
- docroutine(self, object, funcs={}, classes={}, methods={}, clname='')
- Produce HTML documentation for a function or method object.
- doctree(self, tree, modname, classes={}, parent=None)
- Produce HTML for a class tree as given by inspect.getclasstree().
- escape(self, text)
- formatvalue(self, object)
- Format an argument default value as text.
- heading(self, title, fgcol, bgcol, extras='')
- Format a page heading.
- index(self, dir, shadowed=None)
- Generate an HTML index for a directory of modules.
- markup(self, text, escape=None, funcs={}, classes={}, methods={})
- Mark up some plain text, given a context of symbols to look for.
- Each context dictionary maps object names to anchor names.
- modpkglink(self, (name, path, ispackage, shadowed))
- Make a link for a module or package to display in an index.
- modulelink(self, object)
- Make a link for a module.
- multicolumn(self, list, format, cols=4)
- Format a list of items into a multi-column list.
- namelink(self, name, *dicts)
- Make a link for an identifier, given name-to-URL mappings.
- page(self, object)
- Produce a complete HTML page of documentation for an object.
- preformat(self, text)
- Format literal preformatted text.
- repr(self, object)
- section(self, title, fgcol, bgcol, contents, width=20, prelude='', marginalia=None, gap=' ')
- Format a section with a heading.
|
|
class HTMLRepr(repr.Repr) |
| |
Class for safely making an HTML representation of a Python object. |
| | |
- __init__(self)
- escape(self, text)
- repr(self, object)
- repr1(self, x, level)
- repr_instance(self, x, level)
- repr_string(self, x, level)
- repr_string(self, x, level)
|
|
class TextDoc(Doc) |
| |
Formatter class for text documentation. |
| | |
- bold(self, text)
- Format a string in bold by overstriking.
- docclass(self, object)
- Produce text documentation for a given class object.
- docmodule(self, object)
- Produce text documentation for a given module object.
- docroutine(self, object)
- Produce text documentation for a function or method object.
- doctree(self, tree, modname, parent=None, prefix='')
- Render in text a class tree as returned by inspect.getclasstree().
- formatvalue(self, object)
- Format an argument default value as text.
- indent(self, text, prefix=' ')
- Indent text by prepending a given prefix to each line.
- repr(self, x)
- section(self, title, contents)
- Format a section with a given heading.
|
|