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,2 @@
(library
(public_name foo))

View file

@ -0,0 +1,21 @@
This test generates documentation for non-hidden modules only for a library:
$ dune build @doc
Hidden modules should be compiled
$ find _build/default -name '*.odoc' | sort -n
_build/default/.foo.objs/byte/foo.odoc
_build/default/.foo.objs/byte/foo__.odoc
_build/default/.foo.objs/byte/foo__Bar.odoc
_build/default/_doc/_odoc/pkg/foo/page-index.odoc
Hidden modules should not be linked
$ find _build/default -name '*.odocl' | sort -n
_build/default/_doc/_odocls/foo/foo.odocl
_build/default/_doc/_odocls/foo/page-index.odocl
We don't expect html for hidden modules
$ find _build/default -name '*.html' | sort -n
_build/default/_doc/_html/foo/Foo/index.html
_build/default/_doc/_html/foo/index.html
_build/default/_doc/_html/index.html