Skip to main content

note_toctree

Function note_toctree 

Source
pub fn note_toctree(env: &mut BuildEnvironment, docname: &str, toctree: &Node)
Expand description

Record one toctree node’s file relations in the environment.

Port of note_toctree (adapters/toctree.py:32-47). Note the setdefault in env.toctree_includes.setdefault(docname, []).extend(...): the key is created even when the toctree includes nothing.