Module Odoc_document.Renderer

Standard definition and types for all renderers

type syntax =
  1. | OCaml
  2. | Reason
val string_of_syntax : syntax -> string
type page = {
  1. filename : Fpath.t;
  2. content : Stdlib.Format.formatter -> unit;
  3. children : page list;
}
val traverse : f:(Fpath.t -> (Stdlib.Format.formatter -> unit) -> 'a) -> page list -> unit
type 'a t = {
  1. name : string;
  2. render : 'a -> Types.Page.t -> page list;
}
val document_of_page : syntax:syntax -> Odoc_model.Lang.Page.t -> Types.Page.t
val document_of_compilation_unit : syntax:syntax -> Odoc_model.Lang.Compilation_unit.t -> Types.Page.t