Dune allows to generate OCamlDoc documentation using
dune build @doc. opam has a
with-doc target which runs
dune build @doc and puts documentation in the .opam folder. Only, it doesn’t put the ocamldoc afaik. Is there a stanza to add, or something to do, so that the ocamldoc is shared.
The answer may be “It’s not possible”, in which case, if you have any input as to why it’s not, whether it just hasn’t been done yet, or it should not be done for some reason.