Odoc_document.Renderer
SourceStandard definition and types for all renderers
type 'a t = {
name : string;
render : 'a -> Types.Document.t -> page list;
extra_documents : 'a -> input -> syntax:syntax -> Types.Document.t list;
}
val documents_of_source_tree :
syntax:syntax ->
Odoc_model.Lang.SourceTree.t ->
Types.Document.t list
val document_of_compilation_unit :
syntax:syntax ->
Odoc_model.Lang.Compilation_unit.t ->
Types.Document.t
val document_of_source :
syntax:syntax ->
Odoc_model.Paths.Identifier.SourcePage.t ->
Syntax_highlighter.infos ->
Odoc_model.Lang.Source_info.infos ->
string ->
Types.Document.t