Skip to content

Commit

Permalink
add test to demostrate that dune doesn't generate docs for hidden mod…
Browse files Browse the repository at this point in the history
…ules

Signed-off-by: lubegasimon <[email protected]>
  • Loading branch information
lubegasimon committed Apr 28, 2021
1 parent 022380a commit 56981b4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
Empty file.
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/odoc/odoc-wrapped-lib.t/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(library
(public_name foo))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.10)
Empty file.
20 changes: 20 additions & 0 deletions test/blackbox-tests/test-cases/odoc/odoc-wrapped-lib.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This test generates documentation for non-hidden modules only using odoc for a library:

$ dune build @doc
$ ls -R _build/default/_doc/_html
foo
highlight.pack.js
index.html
odoc.css

_build/default/_doc/_html/foo:
Foo
index.html

_build/default/_doc/_html/foo/Foo:
Bar
index.html

_build/default/_doc/_html/foo/Foo/Bar:
index.html

0 comments on commit 56981b4

Please sign in to comment.