Testing the rocqdoc_header and rocqdoc_footer field of the env stanza. $ cat > dune-project < (lang dune 3.21) > (using rocq 0.11) > EOF $ cat > dune < (env > (_ > (rocq > (rocqdoc_header header.html) > (rocqdoc_footer footer.html)))) > (rocq.theory > (name a)) > EOF $ cat > foo.v < Definition a := 42. > EOF $ cat > header.html < header > EOF $ cat > footer.html < footer > EOF $ dune build @doc $ dune trace cat | jq -c 'include "dune"; coqdocFlags' "-R" "coq/theories" "Corelib" "-R" "." "a" "--toc" "--with-header" "header.html" "--with-footer" "footer.html" "--html" "-d" "a.html" "foo.v" $ dune build @doc-latex $ dune trace cat | jq -c 'include "dune"; coqdocFlags' "-R" "coq/theories" "Corelib" "-R" "." "a" "--toc" "--latex" "-d" "a.tex" "foo.v"