Re: [sphinx-users] How to link to RST directive option?

18 views
Skip to first unread message
Message has been deleted

Jean Abou Samra

unread,
May 16, 2022, 7:04:05 PMMay 16
to sphinx...@googlegroups.com, Gee Transit


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

Reply all
Reply to author
Forward
Message has been deleted
0 new messages