Commits

Anonymous committed 93d9582

Give the env to custom descitem parse functions.

  • Participants
  • Parent commits d5dd34d

Comments (0)

Files changed (1)

sphinx/directives.py

                 # another registered generic x-ref directive
                 rolename, indextext, parse_node = additional_xref_types[desctype]
                 if parse_node:
-                    fullname = parse_node(sig, signode)
+                    fullname = parse_node(env, sig, signode)
                 else:
                     signode.clear()
                     signode += addnodes.desc_name(sig, sig)