package mdx
-
mdx.top
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Code blocks headers.
module OCaml_kind : sig ... end
module Header : sig ... end
Code blocks.
type ocaml_value = {
env : Ocaml_env.t;
env
is the name given to the environment where tests are run.
non_det : Label.non_det option;
errors : Output.t list;
header
defines whether a header was specified for the block.
header : Header.t option;
}
type toplevel_value = {
env : Ocaml_env.t;
env
is the name given to the environment where tests are run.
non_det : Label.non_det option;
}
type include_ocaml_file = {
part_included : string option;
part_included
is the part of the file to synchronize with. If lines is not specified synchronize the whole file.
ocaml_value : ocaml_value option;
kind : OCaml_kind.t;
}
type include_value = {
file_included : string;
file_included
is the name of the file to synchronize with.
file_kind : include_file_kind;
}
type value =
| Raw of raw_value
| OCaml of ocaml_value
| Cram of cram_value
| Toplevel of toplevel_value
| Include of include_value
The type for block values.
module Raw : sig ... end
type t = {
loc : Location.t;
section : section option;
dir : string option;
labels : Label.t list;
legacy_labels : bool;
contents : string list;
skip : bool;
version_enabled : bool;
Whether the current OCaml version complies with the block's version.
*)os_type_enabled : bool;
Whether the current os type complies with the block's version.
*)set_variables : (string * string) list;
unset_variables : string list;
delim : string option;
value : value;
}
The type for supported code blocks.
val mk_include :
loc:Location.t ->
section:section option ->
labels:Label.t list ->
(t, [ `Msg of string ]) result
mk_include
builds an include block from a comment <!-- $MDX ... -->
that is not followed by a code block ``` ... ```
.
val from_raw : Raw.t -> (t, [ `Msg of string ] list) Result.result
pp_header
pretty-prints full block headers with the labels.
pp_footer
pretty-prints block footer.
val non_det : t -> Label.non_det option
Whether a block's command or output is non-deterministic.
val directory : t -> string option
directory t
is the directory where t
tests should be run.
val file : t -> string option
file t
is the name of the file to synchronize t
with.
val set_variables : t -> (string * string) list
set_variable t
is the list of environment variable to set and their values
val unset_variables : t -> string list
unset_variable t
is the list of environment variable to unset
val skip : t -> bool
skip t
is true iff skip
is in the labels of t
.
val is_active : ?section:string -> t -> bool