Module Odoc_document.Renderer

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