Skip to content

Commit 8cb877f

Browse files
committed
output a file even rendering a hidden module
Hidden modules were not rendered, since calling html-generate on them was used to generate the associated source code. However, this breaks dune rules in some cases (see issue ocaml#1013), as dune always expect an output to the command. This fix is related to the separation of implementation and interface pipelines (see ocaml#1067). Signed-off-by: Paul-Elliot <peada@free.fr>
1 parent a963381 commit 8cb877f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/odoc/rendering.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ let documents_of_unit ~warnings_options ~syntax ~renderer ~extra unit =
77
|> Odoc_model.Error.handle_warnings ~warnings_options
88
>>= fun extra_docs ->
99
Ok
10-
(if unit.hidden then extra_docs
11-
else Renderer.document_of_compilation_unit ~syntax unit :: extra_docs)
10+
(Renderer.document_of_compilation_unit ~syntax unit :: extra_docs)
1211

1312
let documents_of_page ~warnings_options ~syntax ~renderer ~extra page =
1413
Odoc_model.Error.catch_warnings (fun () ->

0 commit comments

Comments
 (0)