Skip Navigation
Instance MethodMethod

buildNavigationTree()

Builds the navigation tree with its filter field.

mutating func buildNavigationTree() -> String

Return Value

The navigator, with an empty card if the index contains no modules.

Discussion

The structure mirrors swift-docc-render’s Navigator and NavigatorCard: a nav.navigator holding the card with the technology title and the rows, and the filter field at the bottom. A single module’s title stays above the scrolling rows like swift-docc-render’s; with several modules, each module’s title and rows scroll together. Links are relative to the output root. Every row representing a page carries the identifier returned by rowIdentifier(forPath:); if a page is listed more than once, only its first row carries the identifier.