Odoc_document.Renderer
SourceStandard definition and types for all renderers
type page = {
filename : Fpath.t;
path : Url.Path.t;
content : Format.formatter -> unit;
children : page list;
}
type 'a t = {
name : string;
render : 'a -> Sidebar.t option -> Types.Document.t -> page list;
filepath : 'a -> Url.Path.t -> Fpath.t;
}
val documents_of_implementation :
syntax:syntax ->
Odoc_model.Lang.Implementation.t ->
Syntax_highlighter.infos ->
string ->
Types.Document.t list
val document_of_compilation_unit :
syntax:syntax ->
Odoc_model.Lang.Compilation_unit.t ->
Types.Document.t