Module Odoc_odoc.Odoc_fileSource
Load and save .odoc and .odocl files.
Source
type content = | Page_content of Odoc_model.Lang.Page.t| Impl_content of Odoc_model.Lang.Implementation.t| Unit_content of Odoc_model.Lang.Compilation_unit.t| Asset_content of Odoc_model.Lang.Asset.t
Either a page or a module or something else.
Serialization
Source
val save_page :
Odoc_odoc.Fs.File.t ->
warnings:Odoc_model.Error.t list ->
Odoc_model.Lang.Page.t ->
unitSave a page. The page- prefix is added to the file name if missing.
Source
val save_unit :
Odoc_odoc.Fs.File.t ->
warnings:Odoc_model.Error.t list ->
Odoc_model.Lang.Compilation_unit.t ->
unitSave a module.
Source
val save_impl :
Odoc_odoc.Fs.File.t ->
warnings:Odoc_model.Error.t list ->
Odoc_model.Lang.Implementation.t ->
unitSave an implementation. The src- prefix is added to the file name if missing.
Deserialization
Load an .odoc file.
Only load the root. Faster than load, used for looking up imports.
Load a .odoc-index file.
Source
val load_sidebar :
Odoc_odoc.Fs.File.t ->
(Odoc_document.Sidebar.t, [> Odoc_utils.msg ]) Stdlib.resultLoad a .odoc-index file.
Source
val save_asset :
Fpath.t ->
warnings:Odoc_model.Error.t list ->
Odoc_model.Lang.Asset.t ->
unit