I have an ocamlbuild project which includes some files in a subdirectory with an .mlpack file listing them.
e.g. I have a file support/logging.ml
which defines the module Support.Logging
. The _tags
file says "support": for-pack(Support)
.
This all builds and runs fine. But how can I generate docs for this using ocamldoc?
The most recent post I found was ocamldoc generation and packed files from 2011, which suggests using ocp-pack
to generate one large .ml file and pass that to ocamldoc
. However, that doesn't take into account the build order, so the generated module doesn't work due to forward references.
What's the best way to handle this?