1. Georg Brandl
  2. sphinx

Commits

georg.brandl  committed 93d9582

Give the env to custom descitem parse functions.

  • Participants
  • Parent commits d5dd34d
  • Branches default

Comments (0)

Files changed (1)

File sphinx/directives.py

View file
  • Ignore whitespace
                 # 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)