Odoc_odoc.Resolver
SourceManagement of the documentation environment.
This is the module which does the link between packages, directories and Odoc_xref2
's needs.
type roots = {
page_roots : named_root list;
lib_roots : named_root list;
current_lib : named_root option;
The current -L
.
current_package : named_root option;
The current -P
.
current_dir : Fs.Directory.t;
Directory containing the output for the current unit.
*)}
val create :
important_digests:bool ->
directories:Fs.Directory.t list ->
open_modules:string list ->
roots:roots option ->
t
Prepare the environment for a given list of include directories, page roots and library roots.
Helpers for creating xref2 env.
Initialize the environment for compiling the given module.
Initialize the environment for linking the given module.
Initialize the environment for the given page.
Initialize the environment for the given implementation.
Initialize the environment for the given implementation.
Initialize the environment for a reference.
Similar to Odoc_xref2.Env.lookup_root_module
but save work by loading only the root. Only used when resolving imports, which are needed for the link-deps
command.