Module Doctree.HeadingsSource

Sourceval fold : enter_subpages:bool -> ('a -> Types.Heading.t -> 'a) -> 'a -> Types.Page.t -> 'a

Fold over every headings, follow nested documentedsrc and expansions, as well as subpages if enter_subpages is true.

Sourceval foldmap : enter_subpages:bool -> ('a -> Types.Heading.t -> 'a * Types.Heading.t) -> 'a -> Types.Page.t -> 'a * Types.Page.t