class documentation
class TocTree: (source)
Undocumented
Method | __init__ |
Undocumented |
Method | get |
Return a TOC nodetree -- for use on the same page only! |
Method | get |
Undocumented |
Method | get |
Return the global TOC nodetree. |
Method | note |
Note a TOC tree directive in a document and gather information about file relations from it. |
Method | resolve |
Resolve a *toctree* node into individual bullet lists with titles as items, returning None (if no containing titles are found) or a new node. |
Type Variable | ET |
Undocumented |
Instance Variable | env |
Undocumented |
Method | _toctree |
Utility: Cut and deep-copy a TOC at a specified depth. |
Note a TOC tree directive in a document and gather information about file relations from it.
Parameters | |
docname:str | Undocumented |
toctreenode:addnodes.toctree | Undocumented |
def resolve(self, docname, builder, toctree, prune=True, maxdepth=0, titles_only=False, collapse=False, includehidden=False):
(source)
¶
Resolve a *toctree* node into individual bullet lists with titles as items, returning None (if no containing titles are found) or a new node. If *prune* is True, the tree is pruned to *maxdepth*, or if that is 0, to the value of the *maxdepth* option on the *toctree* node. If *titles_only* is True, only toplevel document titles will be in the resulting tree. If *collapse* is True, all branches not containing docname will be collapsed.
Parameters | |
docname:str | Undocumented |
builder:Builder | Undocumented |
toctree:addnodes.toctree | Undocumented |
prune:bool | Undocumented |
maxdepth:int | Undocumented |
titlesbool | Undocumented |
collapse:bool | Undocumented |
includehidden:bool | Undocumented |
Returns | |
Element|None | Undocumented |