jon.recoil.org

Module Odoc_document.RendererSource

Standard definition and types for all renderers

Sourcetype syntax =
  1. | OCaml
  2. | Reason
Sourceval string_of_syntax : Odoc_document.Renderer.syntax -> string
Sourcetype page = {
  1. filename : Fpath.t;
  2. path : Odoc_document.Url.Path.t;
  3. content : Stdlib.Format.formatter -> unit;
  4. children : Odoc_document.Renderer.page list;
  5. assets : Odoc_extension_registry.asset list;
    (*

    Binary assets to write alongside this page

    *)
}
Sourceval traverse : f: (Fpath.t -> (Stdlib.Format.formatter -> unit) -> Odoc_extension_registry.asset list -> 'a) -> Odoc_document.Renderer.page list -> unit
Sourcetype 'a t = {
  1. name : string;
  2. render : 'a -> Odoc_document.Sidebar.t option -> Odoc_document.Types.Document.t -> Odoc_document.Renderer.page list;
  3. filepath : 'a -> Odoc_document.Url.Path.t -> Fpath.t;
}