Keeping fully qualified names around

21 views
Skip to first unread message

Vinay Sajip

unread,
Nov 5, 2022, 4:16:17 PM11/5/22
to sphinx-users
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

Pradyun Gedam

unread,
Jan 2, 2023, 1:38:39 PM1/2/23
to sphinx-users
Asking on sphinx-dev or filing an issue against the source repo might be a good idea. :)

Best,
Pradyun
Reply all
Reply to author
Forward
0 new messages