diff options
author | Clément Pit-Claudel <clement.pitclaudel@live.com> | 2018-05-13 12:18:38 -0400 |
---|---|---|
committer | Clément Pit-Claudel <clement.pitclaudel@live.com> | 2018-05-22 11:40:13 -0400 |
commit | 9811cda7698652b51e8ebdb25db7285ab8e5ae9a (patch) | |
tree | 05ee79403aa9b5dfb62bb7a5f7b1137d3e483ab7 /doc/sphinx/README.template.rst | |
parent | 55c35435dc383a3f488a706605ba57607fd88681 (diff) |
[doc] Document the new report_undocumented_coq_objects setting
Diffstat (limited to 'doc/sphinx/README.template.rst')
-rw-r--r-- | doc/sphinx/README.template.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/sphinx/README.template.rst b/doc/sphinx/README.template.rst index b51421e2a..f90efa995 100644 --- a/doc/sphinx/README.template.rst +++ b/doc/sphinx/README.template.rst @@ -22,6 +22,7 @@ Our Coq domain define multiple `objects`_. Each object has a *signature* (think matching :n:`@pattern` in the current goal. .. exn:: Too few occurrences + :undocumented: Objects are automatically collected into indices, and can be linked to using the role version of the object's directive. For example, you could link to the tactic variant above using ``:tacv:`simpl_at```, and to its exception using ``:exn:`Too few occurrences```. @@ -31,6 +32,8 @@ Names (link targets) are auto-generated for most simple objects, though they can - Vernacs (commands) have their name set to the first word of their signature. For example, the auto-generated name of ``Axiom @ident : @term`` is ``Axiom``, and a link to it would take the form ``:cmd:`Axiom```. - Vernac variants, tactic notations, and tactic variants do not have a default name. +Most objects should have a body (i.e. a block of indented text following the signature, called “contents” in Sphinx terms). Undocumented objects should have the `:undocumented:` flag instead, as shown above. + Notations --------- @@ -113,6 +116,8 @@ DON'T Foo all the :token:`bar`\ s in the current context +You can set the ``report_undocumented_coq_objects`` setting in ``conf.py`` to ``"info"`` or ``"warning"`` to get a list of all Coq objects without a description. + Overusing ``:token:`` --------------------- |