| 1 |
This test generates documentation for non-hidden modules only for a library: |
| 2 |
|
| 3 |
$ dune build @doc-new |
| 4 |
|
| 5 |
Hidden modules should be compiled |
| 6 |
$ find _build/default/_doc_new/odoc/local/foo -name '*.odoc' | sort -n |
| 7 |
_build/default/_doc_new/odoc/local/foo/foo.odoc |
| 8 |
_build/default/_doc_new/odoc/local/foo/foo__.odoc |
| 9 |
_build/default/_doc_new/odoc/local/foo/foo__Bar.odoc |
| 10 |
|
| 11 |
Hidden modules should not be linked |
| 12 |
$ find _build/default/_doc_new/odoc/local/foo -name '*.odocl' | sort -n |
| 13 |
_build/default/_doc_new/odoc/local/foo/foo.odocl |
| 14 |
|
| 15 |
We don't expect html for hidden modules |
| 16 |
$ find _build/default/_doc_new/html/docs/local/foo -name '*.html' | sort -n |
| 17 |
_build/default/_doc_new/html/docs/local/foo/Foo/index.html |
| 18 |
_build/default/_doc_new/html/docs/local/foo/index.html |