aboutsummaryrefslogtreecommitdiff
path: root/doc/tools
diff options
context:
space:
mode:
authorClément Pit-Claudel2019-05-20 17:32:59 -0400
committerClément Pit-Claudel2020-03-19 13:51:06 -0400
commit9492db6eeab7c8d29d7f4374fdbafe659149b231 (patch)
treeaa529bb7780895e3b1722ccd21a7396f02bbf151 /doc/tools
parent918e301faa228190f885f860510f4b6c352620f5 (diff)
[refman] Remove workaround for sphinx-doc/sphinx#4983
Diffstat (limited to 'doc/tools')
-rw-r--r--doc/tools/coqrst/coqdomain.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/tools/coqrst/coqdomain.py b/doc/tools/coqrst/coqdomain.py
index b92c94fe2c..f631707e32 100644
--- a/doc/tools/coqrst/coqdomain.py
+++ b/doc/tools/coqrst/coqdomain.py
@@ -493,9 +493,7 @@ class ProductionObject(CoqObject):
pass
def _target_id(self, name):
- # Use `name[1]` instead of ``nodes.make_id(name[1])`` to work around
- # https://github.com/sphinx-doc/sphinx/issues/4983
- return 'grammar-token-{}'.format(name[1])
+ return 'grammar-token-{}'.format(nodes.make_id(name[1]))
def _record_name(self, name, targetid):
env = self.state.document.settings.env