aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/changelog/05-tactic-language/13920-ltac2-ind-api.rst5
-rw-r--r--doc/stdlib/index-list.html.template1
-rw-r--r--doc/tools/coqrst/coqdomain.py24
3 files changed, 18 insertions, 12 deletions
diff --git a/doc/changelog/05-tactic-language/13920-ltac2-ind-api.rst b/doc/changelog/05-tactic-language/13920-ltac2-ind-api.rst
new file mode 100644
index 0000000000..32499957be
--- /dev/null
+++ b/doc/changelog/05-tactic-language/13920-ltac2-ind-api.rst
@@ -0,0 +1,5 @@
+- **Added:**
+ Added the Ltac2 API `Ltac2.Ind` for manipulating inductive types
+ (`#13920 <https://github.com/coq/coq/pull/13920>`_,
+ fixes `#10095 <https://github.com/coq/coq/issues/10095>`_,
+ by Pierre-Marie Pédrot).
diff --git a/doc/stdlib/index-list.html.template b/doc/stdlib/index-list.html.template
index b0f4e883be..d67906c4a8 100644
--- a/doc/stdlib/index-list.html.template
+++ b/doc/stdlib/index-list.html.template
@@ -685,6 +685,7 @@ through the <tt>Require Import</tt> command.</p>
user-contrib/Ltac2/Fresh.v
user-contrib/Ltac2/Ident.v
user-contrib/Ltac2/Init.v
+ user-contrib/Ltac2/Ind.v
user-contrib/Ltac2/Int.v
user-contrib/Ltac2/List.v
user-contrib/Ltac2/Ltac1.v
diff --git a/doc/tools/coqrst/coqdomain.py b/doc/tools/coqrst/coqdomain.py
index edb8db1e94..1428dae7ef 100644
--- a/doc/tools/coqrst/coqdomain.py
+++ b/doc/tools/coqrst/coqdomain.py
@@ -529,12 +529,12 @@ class ProductionObject(CoqObject):
self.signatures = []
indexnode = super().run()[0] # makes calls to handle_signature
- table = nodes.container(classes=['prodn-table'])
- tgroup = nodes.container(classes=['prodn-column-group'])
+ table = nodes.inline(classes=['prodn-table'])
+ tgroup = nodes.inline(classes=['prodn-column-group'])
for _ in range(4):
- tgroup += nodes.container(classes=['prodn-column'])
+ tgroup += nodes.inline(classes=['prodn-column'])
table += tgroup
- tbody = nodes.container(classes=['prodn-row-group'])
+ tbody = nodes.inline(classes=['prodn-row-group'])
table += tbody
# create rows
@@ -542,8 +542,8 @@ class ProductionObject(CoqObject):
lhs, op, rhs, tag = signature
position = self.state_machine.get_source_and_line(self.lineno)
- row = nodes.container(classes=['prodn-row'])
- entry = nodes.container(classes=['prodn-cell-nonterminal'])
+ row = nodes.inline(classes=['prodn-row'])
+ entry = nodes.inline(classes=['prodn-cell-nonterminal'])
if lhs != "":
target_name = make_id('grammar-token-' + lhs)
target = nodes.target('', '', ids=[target_name], names=[target_name])
@@ -553,19 +553,19 @@ class ProductionObject(CoqObject):
entry += inline
entry += notation_to_sphinx('@'+lhs, *position)
else:
- entry += nodes.Text('')
+ entry += nodes.literal('', '')
row += entry
- entry = nodes.container(classes=['prodn-cell-op'])
- entry += nodes.Text(op)
+ entry = nodes.inline(classes=['prodn-cell-op'])
+ entry += nodes.literal(op, op)
row += entry
- entry = nodes.container(classes=['prodn-cell-production'])
+ entry = nodes.inline(classes=['prodn-cell-production'])
entry += notation_to_sphinx(rhs, *position)
row += entry
- entry = nodes.container(classes=['prodn-cell-tag'])
- entry += nodes.Text(tag)
+ entry = nodes.inline(classes=['prodn-cell-tag'])
+ entry += nodes.literal(tag, tag)
row += entry
tbody += row