Seems there's a workaround in ocaml-doc-ci that we could re-use: https://github.com/ocurrent/ocaml-docs-ci/pull/125