Thanks a lot :D I have default_role = "any" so I ended up doing `bar
<foo:bar>`. When I have the time, I'll make a pull request to add this
to the ReST domain's docs [1]_.
.. [1]
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#role-rst-dir
On 5/16/2022 7:04 PM, Jean Abou Samra wrote:
Le 16/05/2022 à 19:24, Gee Transit a écrit :
I have:
.. rst:directive:: foo
.. rst:directive:option:: bar
blah blah blah
Is it possible to link to the bar option somehow? I've tried `bar`,
`:bar:`, `foo :bar:`, nd :rst:option:`bar`but they don't work :( If
it's not possible to add it in Sphinx directly, is it possible to
create a new role to do this?
Reading the code, it looks like you can do
:rst:dir:`bar <foo:bar>`
Best,
Jean
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/9c0eea2a-3847-2a80-2d34-d85531001f84%40gmail.com.