class TocTree:
Undocumented
Method | __init__ |
Undocumented |
Method | _toctree_prune |
Utility: Cut a TOC at a specified depth. |
Method | get_toc_for |
Return a TOC nodetree -- for use on the same page only! |
Method | get_toctree_ancestors |
Undocumented |
Method | get_toctree_for |
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. |
Instance Variable | env |
Undocumented |
Parameters | |
node:Element | Undocumented |
depth:int | Undocumented |
maxdepth:int | Undocumented |
collapse:bool | Undocumented |
Parameters | |
docname:str | Undocumented |
builder:Builder | Undocumented |
Returns | |
Node | Undocumented |
Undocumented
Parameters | |
docname:str | Undocumented |
Returns | |
List[ | Undocumented |
Parameters | |
docname:str | Undocumented |
builder:Builder | Undocumented |
collapse:bool | Undocumented |
**kwargs:Any | Undocumented |
Returns | |
Optional[ | Undocumented |
Parameters | |
docname:str | Undocumented |
toctreenode:addnodes.toctree | Undocumented |
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 |
titles_only:bool | Undocumented |
collapse:bool | Undocumented |
includehidden:bool | Undocumented |
Returns | |
Optional[ | Undocumented |