I'd like to keep fully-qualified names around and incorporate them into generated HTML. For example, given the markup
:meth:`~module.class.method`
this generates the HTML
<code class="xref py py-meth docutils literal"><span class="pre">method()</span></code>
but I'd like to (for example) generate something like
<code class="xref py py-meth docutils literal"><span class="pre" data-fullname="module.class.method">gen_key_input()</span></code>
How would I go about doing this? If is this too low-level for this group, someone please tell me and I can perhaps ask on sphinx-dev.
Thanks and regards,
Vinay Sajip