Module Odoc_document.RendererSource

Standard definition and types for all renderers

Sourcetype syntax =
  1. | OCaml
  2. | Reason
Sourceval string_of_syntax : syntax -> string
Sourcetype page = {
  1. filename : Fpath.t;
  2. content : Format.formatter -> unit;
  3. children : page list;
}
Sourceval traverse : f:(Fpath.t -> (Format.formatter -> unit) -> unit) -> page list -> unit
Sourcetype 'a t = {
  1. name : string;
  2. render : 'a -> Types.Document.t -> page list;
  3. extra_documents : 'a -> input -> syntax:syntax -> Types.Document.t list;
}
Sourceval document_of_page : syntax:syntax -> Odoc_model.Lang.Page.t -> Types.Document.t
Sourceval documents_of_source_tree : syntax:syntax -> Odoc_model.Lang.SourceTree.t -> Types.Document.t list
Sourceval document_of_compilation_unit : syntax:syntax -> Odoc_model.Lang.Compilation_unit.t -> Types.Document.t
Sourceval document_of_source : syntax:syntax -> Odoc_model.Paths.Identifier.SourcePage.t -> Syntax_highlighter.infos -> Odoc_model.Lang.Source_info.infos -> string -> Types.Document.t