This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,43 @@
Test docs generation with Melange
$ export DUNE_SANDBOX=none
$ cat <<EOF > dune-project
> (lang dune 3.8)
> (using melange 0.1)
> (package (name foo))
> EOF
$ cat <<EOF > dune
> (library
> (name foo)
> (public_name foo)
> (modes :standard melange))
> EOF
> touch foo.ml bar.ml
Works for "universal" libraries
$ dune build @doc
$ cat _build/default/_doc/_mlds/foo/index.mld
{0 foo index}
{1 Library foo}
The entry point of this library is the module:
{!module-Foo}.
Works for Melange-only libraries
$ cat <<EOF > dune
> (library
> (name foo)
> (public_name foo)
> (modes melange))
> EOF
$ dune build @doc
$ cat _build/default/_doc/_mlds/foo/index.mld
{0 foo index}
{1 Library foo}
The entry point of this library is the module:
{!module-Foo}.