This transform generates a table of contents from the entire document tree or from a single branch. It locates "section" elements and builds them into a nested bullet list, which is placed within a "topic" created by the contents directive. A title is either explicitly specified, taken from the appropriate language module, or omitted (local table of contents). The depth may be specified. Two-way references between the table of contents and section titles are generated (requires Writer support).
This transform requires a startnode, which which contains generation options and provides the location for the generated table of contents (the startnode is replaced by the table of contents "topic").
There are no implemented interfaces.
default_priority
(type:
int
)
720
apply()
build_contents(node, level=0)
copy_and_filter(node)
Return a copy of a title, with references, images, etc. removed.
There are no known subclasses.