Odoc_odoc.Odoc_fileLoad and save .odoc and .odocl files.
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.tEither a page or a module or something else.
val save_page :
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.
val save_unit :
Fs.File.t ->
warnings:Odoc_model.Error.t list ->
Odoc_model.Lang.Compilation_unit.t ->
unitSave a module.
val save_impl :
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.
val load : Fs.File.t -> (t, [> Odoc_utils.msg ]) resultLoad an .odoc file.
val load_root : Fs.File.t -> (Odoc_model.Root.t, [> Odoc_utils.msg ]) resultOnly load the root. Faster than load, used for looking up imports.
val save_index : Fs.File.t -> Odoc_index.t -> unitval load_index : Fs.File.t -> (Odoc_index.t, [> Odoc_utils.msg ]) resultLoad a .odoc-index file.
val save_sidebar : Fs.File.t -> Odoc_document.Sidebar.t -> unitval load_sidebar :
Fs.File.t ->
(Odoc_document.Sidebar.t, [> Odoc_utils.msg ]) resultLoad a .odoc-index file.
val save_asset :
Fpath.t ->
warnings:Odoc_model.Error.t list ->
Odoc_model.Lang.Asset.t ->
unit