| 1 |
This test generates documentation using odoc for a library: |
| 2 |
|
| 3 |
$ dune build @doc-new |
| 4 |
|
| 5 |
This test if `.odocl` files are generated |
| 6 |
$ find _build/default/_doc_new/odoc/local -name '*.odocl' | sort -n |
| 7 |
_build/default/_doc_new/odoc/local/bar/bar.odocl |
| 8 |
_build/default/_doc_new/odoc/local/foo/byte/foo_byte.odocl |
| 9 |
_build/default/_doc_new/odoc/local/foo/foo.odocl |
| 10 |
_build/default/_doc_new/odoc/local/foo/foo2.odocl |
| 11 |
|
| 12 |
$ ls _build/default/_doc_new/html/docs/local/ |
| 13 |
bar |
| 14 |
foo |
| 15 |
index.html |
| 16 |
|
| 17 |
$ dune build @foo-mld |
| 18 |
{0 Package foo} |
| 19 |
{1 Sub-indexes} |
| 20 |
- {{!page-"byte"}byte} |
| 21 |
{1 Library foo} |
| 22 |
This library exposes the following toplevel modules: |
| 23 |
{!modules:foo foo2} |
| 24 |
{1 Library foo.byte} |
| 25 |
The entry point of this library is the module: |
| 26 |
{!module-Foo_byte}. |
| 27 |
|
| 28 |
$ dune build @bar-mld |
| 29 |
{0 Package bar} |
| 30 |
{1 Library bar} |
| 31 |
The entry point of this library is the module: |
| 32 |
{!module-Bar}. |