@@ -69,6 +69,8 @@ The Coq theory stanza is very similar in form to the OCaml
6969 (modules_flags <flags_map>)
7070 (coqdep_flags <coqdep_flags>)
7171 (coqdoc_flags <coqdoc_flags>)
72+ (coqdoc_header <coqdoc_header>)
73+ (coqdoc_footer <coqdoc_footer>)
7274 (stdlib <stdlib_included>)
7375 (mode <coq_native_mode>)
7476 (theories <coq_theories>))
@@ -146,6 +148,14 @@ The semantics of the fields are:
146148 flags are passed separately depending on which mode is target. See the section
147149 on :ref: `documentation using coqdoc<coqdoc> ` for more information.
148150
151+ - ``<coqdoc_header> `` is a file passed to ``coqdoc `` using the ``--with-header ``
152+ option, to configure a custom HTML header for the generated HTML pages.
153+ (Appeared in :ref: `Coq lang 0.10<coq-lang> `)
154+
155+ - ``<coqdoc_footer> `` is a file passed to ``coqdoc `` using the ``--with-footer ``
156+ option, to configure a custom HTML footer for the generated HTML pages.
157+ (Appeared in :ref: `Coq lang 0.10<coq-lang> `)
158+
149159- ``<stdlib_included> `` can either be ``yes `` or ``no ``, currently defaulting to
150160 ``yes ``. When set to ``no ``, Coq's standard library won't be visible from this
151161 theory, which means the ``Coq `` prefix won't be bound, and
@@ -212,6 +222,10 @@ Further flags can also be configured using the ``(coqdoc_flags)`` field in the
212222is ``:standard `` which is ``--toc ``. Extra flags can therefore be passed by
213223writing ``(coqdoc_flags :standard --body-only) `` for example.
214224
225+ When building the HTML documentation, flags ``(coqdoc_header) `` and
226+ ``(coqdoc_footer) `` can also be used to configure a custom HTML header or
227+ footer respectively.
228+
215229.. _include-subdirs-coq :
216230
217231Recursive Qualification of Modules
@@ -354,6 +368,8 @@ The Coq lang can be modified by adding the following to a
354368
355369 The supported Coq language versions (not the version of Coq) are:
356370
371+ - ``0.11 ``: Support for the ``(coqdoc_header ...) `` and ``(coqdoc_footer ...) ``
372+ fields.
357373- ``0.10 ``: Support for the ``(coqdep_flags ...) `` field.
358374- ``0.9 ``: Support for per-module flags with the ``(module_flags ...)` `` field.
359375- ``0.8 ``: Support for composition with installed Coq theories;
@@ -849,3 +865,9 @@ with the following values for ``<coq_fields>``:
849865- ``(coqdoc_flags <flags>) ``: The default flags passed to ``coqdoc ``. The default
850866 value is ``--toc ``. Values set here become the ``:standard `` value in the
851867 ``(coq.theory (coqdoc_flags <flags>)) `` field.
868+ - ``(coqdoc_header <file>) ``: The default HTML header passed to ``coqdoc `` via
869+ the ``--with-header `` flag. Values set here become the ``:standard `` value in the
870+ ``(coq.theory (coqdoc_header <file>)) `` field.
871+ - ``(coqdoc_footer <file>) ``: The default HTML footer passed to ``coqdoc `` via
872+ the ``--with-footer `` flag. Values set here become the ``:standard `` value in the
873+ ``(coq.theory (coqdoc_footer <file>)) `` field.
0 commit comments