package forester

  1. Overview
  2. Docs
type config = {
  1. env : Eio_unix.Stdenv.base;
  2. assets_dirs : Eio.Fs.dir_ty Eio.Path.t list;
  3. root : Core.addr option;
  4. base_url : string option;
  5. ignore_tex_cache : bool;
  6. no_assets : bool;
  7. no_theme : bool;
  8. max_fibers : int;
}
type raw_forest = Core.Code.tree Seq.t
type forest = {
  1. trees : Core.Sem.tree Analysis.Map.t;
  2. analysis : Analysis.analysis Lazy.t;
}
val plant_forest : Core.Code.tree Seq.t -> forest
val render_trees : cfg:config -> forest:forest -> unit
val create_tree : cfg:config -> addrs:Core.addr Seq.t -> dest:Eio.Fs.dir_ty Eio.Path.t -> prefix:string -> template:string option -> mode:[ `Sequential | `Random ] -> Core.addr
val complete : forest:forest -> string -> (Core.addr * string) Seq.t
val prefixes : addrs:Core.addr Seq.t -> string list
val taxa : forest:forest -> (Core.addr * string) Seq.t
val tags : forest:forest -> (Core.addr * string list) Seq.t
val run_renderer : cfg:config -> forest -> (unit -> 'a) -> 'a
val render_json : cwd:[> Eio.Fs.dir_ty ] Eio.Path.t -> Core.Sem.tree Analysis.Map.t -> unit
OCaml

Innovation. Community. Security.