aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo Zimmermann2020-03-20 17:57:28 +0100
committerThéo Zimmermann2020-03-20 18:00:06 +0100
commit9df2a43d5336ceb67a8da45f7b64c074b090790f (patch)
tree7ec47696ac7bf03d7fea5ee7815e9aaf48db7805
parent4d025d4161599ea20cd1dbf489a6412f019a7a7e (diff)
Add an index for attributes.
-rw-r--r--doc/sphinx/appendix/indexes/index.rst4
-rw-r--r--doc/sphinx/coq-attrindex.rst5
-rw-r--r--doc/tools/coqrst/coqdomain.py3
3 files changed, 9 insertions, 3 deletions
diff --git a/doc/sphinx/appendix/indexes/index.rst b/doc/sphinx/appendix/indexes/index.rst
index a5032ff822..2ece726df7 100644
--- a/doc/sphinx/appendix/indexes/index.rst
+++ b/doc/sphinx/appendix/indexes/index.rst
@@ -16,9 +16,11 @@ find what you are looking for.
../../coq-tacindex
../../coq-optindex
../../coq-exnindex
+ ../../coq-attrindex
For reference, here are direct links to the documentation of:
- :ref:`flags, options and tables <flags-options-tables>`;
- controlling the display of warning messages with the :opt:`Warnings`
- option.
+ option;
+- :ref:`gallina-attributes`.
diff --git a/doc/sphinx/coq-attrindex.rst b/doc/sphinx/coq-attrindex.rst
new file mode 100644
index 0000000000..f2ace20374
--- /dev/null
+++ b/doc/sphinx/coq-attrindex.rst
@@ -0,0 +1,5 @@
+:orphan:
+
+---------------
+Attribute index
+---------------
diff --git a/doc/tools/coqrst/coqdomain.py b/doc/tools/coqrst/coqdomain.py
index 84f32e187b..2a685a622b 100644
--- a/doc/tools/coqrst/coqdomain.py
+++ b/doc/tools/coqrst/coqdomain.py
@@ -1092,7 +1092,6 @@ class CoqVernacIndex(CoqSubdomainsIndex):
class CoqTacticIndex(CoqSubdomainsIndex):
name, localname, shortname, subdomains = "tacindex", "Tactic Index", "tactics", ["tacn"]
-# Attribute index is generated but not included in output
class CoqAttributeIndex(CoqSubdomainsIndex):
name, localname, shortname, subdomains = "attrindex", "Attribute Index", "attributes", ["attr"]
@@ -1217,7 +1216,7 @@ class CoqDomain(Domain):
'g': CoqCodeRole
}
- indices = [CoqVernacIndex, CoqTacticIndex, CoqOptionIndex, CoqGallinaIndex, CoqExceptionIndex]
+ indices = [CoqVernacIndex, CoqTacticIndex, CoqOptionIndex, CoqGallinaIndex, CoqExceptionIndex, CoqAttributeIndex]
data_version = 1
initial_data = {