Module Doctree.ShiftSource

Sourcetype state = {
  1. englobing_level : int;
  2. current_level : int;
}
Sourceval start : state
Sourceval shift : state -> int -> state * int
Sourceval enter : state -> int -> state
Sourceval walk_documentedsrc : on_sub: ([> `Include of Types.Include.t | `Page of Types.Subpage.t ] -> int option) -> state -> Types.DocumentedSrc.t -> Types.DocumentedSrc.t
Sourceval subpage : on_sub: ([> `Include of Types.Include.t | `Page of Types.Subpage.t ] -> int option) -> state -> Types.Subpage.t -> Types.Subpage.t
Sourceval include_ : on_sub: ([> `Include of Types.Include.t | `Page of Types.Subpage.t ] -> int option) -> state -> Types.Include.t -> Types.Include.t
Sourceval walk_item : on_sub: ([> `Include of Types.Include.t | `Page of Types.Subpage.t ] -> int option) -> state -> Types.Item.t list -> Types.Item.t list
Sourceval compute : on_sub: ([> `Include of Types.Include.t | `Page of Types.Subpage.t ] -> int option) -> Types.Item.t list -> Types.Item.t list