Skip to main content

Module nav

Module nav 

Source
Expand description

Navigation: the tree a document’s pages form through their ## Topics sections.

A page’s children are the links listed under its ## Topics heading — the first link of each list item, labelled with that link’s text — in list order. ### headings inside Topics group them. The tree starts at the root page.

Structs§

Entry
One entry of the tree: a page and its own children. A page listed more than once is an entry only at its position: its shallowest listing, the first in reading order on a tie. Every other listing — the root page’s among them — is left out of the tree.
Group
Children under one ### heading of a Topics section; title is None for links listed before any group heading.
Topic
A link listed in a Topics section, before it is resolved to a file.

Enums§

Target
What a Topics link names in a site’s sidebar.

Functions§

resolve
What a Topics link on page names.
topics
The links listed in a page’s ## Topics section, in order.
tree
The children of the root page, recursively. Each page is in the tree only at its position (see Entry); the root’s position is the top, so cycles end.