Manpages.
See Cmdliner.Manpage.
escape s escapes s from the doc language.
Standard section names
Section maps
Used for handling the merging of metadata doc strings.
smap_append_block smap sec b appends b at the end of section sec creating it at the right place if needed.
Content boilerplate
Output
Printers and escapes used by Cmdliner module
Source
val subst_vars :
errs:Stdlib.Format.formatter ->
subst:(string -> string option) ->
Stdlib.Buffer.t ->
string ->
stringsubst b ~subst s, using b, substitutes in s variables of the form "$(doc)" by their subst definition. This leaves escapes and markup directives $(markup,…) intact.
Source
val doc_to_plain :
errs:Stdlib.Format.formatter ->
subst:(string -> string option) ->
Stdlib.Buffer.t ->
string ->
stringdoc_to_plain b ~subst s using b, substitutes in s variables by their subst definition and renders cmdliner directives to plain text.

