sphinx_fuma._nav¶
Structured navigation data for the templates.
Sphinx hands themes pre-rendered HTML for the sidebar (toctree()) and the
page-local table of contents (toc). Both are nested <ul> markup with no
hook for the collapsible folders and scroll-spy list this theme needs, so the
resolved doctrees are walked here into plain dictionaries the templates render
directly.
Functions¶
|
Return the global toctree as a list of |
|
Return the page-local headings, excluding the document title. |
|
Return ancestor pages, dropping the root so it can be rendered separately. |
Module Contents¶
- sphinx_fuma._nav.sidebar_tree(app, pagename: str, maxdepth: int = 4) → list[dict][source]¶
Return the global toctree as a list of
{caption, entries}groups.