Module DocOckHtml__Html_tree

type t = private {
name : string;
content : [ `Html ] Tyxml.Html.elt;
children : t list;
}
val traverse : f:(parents:string list ‑> string ‑> [ `Html ] Tyxml.Html.elt ‑> unit) ‑> t ‑> unit
type kind = [
| `Arg
| `Mod
| `Mty
| `Class
| `Cty
]

These two functions are used to track the depth while building the tree, which is needed to produce correct links.

val enter : ?⁠kind:kind ‑> string ‑> unit
val leave : unit ‑> unit

Page creator

class page_creator : ?⁠kind:kind ‑> path:string list ‑> Html_types.div_content_fun Tyxml.Html.elt list ‑> object ... end
val set_page_creator : (?⁠kind:kind ‑> path:string list ‑> Html_types.div_content_fun Tyxml.Html.elt list ‑> page_creator) ‑> unit
val make : (Html_types.div_content_fun Tyxml.Html.elt list * t list) ‑> t

make (body, children) calls "the page creator" to turn body into an [ `Html ] elt. If set_page_creator was not called, a default creator is used.

val render_fragment : (__DocOck.Paths.Fragment.sortDocOck.Paths.Fragment.raw ‑> string
val open_details : bool Pervasives.ref

Whether <details> tags should be opened by default or not. Default is true.