This documentation is built with sphinx-fuma.

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

sidebar_tree(→ list[dict])

Return the global toctree as a list of {caption, entries} groups.

page_toc(→ list[dict])

Return the page-local headings, excluding the document title.

breadcrumbs(→ list[dict])

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.

sphinx_fuma._nav.page_toc(app, pagename: str) list[dict][source]

Return the page-local headings, excluding the document title.

sphinx_fuma._nav.breadcrumbs(context: dict) list[dict][source]

Return ancestor pages, dropping the root so it can be rendered separately.