summaryrefslogtreecommitdiff
path: root/sandbox/py-rest-doc/sphinx/directives.py
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/directives.py')
-rw-r--r--sandbox/py-rest-doc/sphinx/directives.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sandbox/py-rest-doc/sphinx/directives.py b/sandbox/py-rest-doc/sphinx/directives.py
index c221b2d6e..bb105f327 100644
--- a/sandbox/py-rest-doc/sphinx/directives.py
+++ b/sandbox/py-rest-doc/sphinx/directives.py
@@ -295,6 +295,7 @@ def desc_directive(desctype, arguments, options, content, lineno,
if fullname not in state.document.ids:
signode['names'].append(fullname)
signode['ids'].append(fullname)
+ signode['first'] = (not names)
state.document.note_explicit_target(signode)
env.note_descref(fullname, desctype)
names.append(name)