aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/README.rst
diff options
context:
space:
mode:
authorClément Pit-Claudel2018-05-18 01:49:27 -0400
committerThéo Zimmermann2018-09-20 10:12:55 +0200
commitfdc5e750f7b87c1d0d1454bae19c00eec9dabbeb (patch)
tree854a0e0c59c4f67d0a98161fa59c6a7bdbdda4d0 /doc/sphinx/README.rst
parentf39626edcbd56bd7b05aabe8b60e9af72d27bbfd (diff)
[doc] Add another common mistake to the documentation-writing guide
Diffstat (limited to 'doc/sphinx/README.rst')
-rw-r--r--doc/sphinx/README.rst32
1 files changed, 31 insertions, 1 deletions
diff --git a/doc/sphinx/README.rst b/doc/sphinx/README.rst
index 6d5545ec3c..369a3a0db8 100644
--- a/doc/sphinx/README.rst
+++ b/doc/sphinx/README.rst
@@ -419,7 +419,7 @@ DO
first [ t1 | … | tn ].
-DONT
+DON'T
.. code::
A tactic of the form:
@@ -451,6 +451,36 @@ DON'T
Plain quotes produce plain text, without highlighting or cross-references.
+Overusing the ``example`` directive
+-----------------------------------
+
+DO
+ .. code::
+
+ Here is a useful axiom:
+
+ .. coqdoc::
+
+ Axiom proof_irrelevance : forall (P : Prop) (x y : P), x=y.
+
+DO
+ .. code::
+
+ .. example:: Using proof-irrelevance
+
+ If you assume the axiom above, …
+
+DON'T
+ .. code::
+
+ Here is a useful axiom:
+
+ .. example::
+
+ .. coqdoc::
+
+ Axiom proof_irrelevance : forall (P : Prop) (x y : P), x=y.
+
Tips and tricks
===============