I am still struggling with this issue. In my understanding the following 
code

 app.add_role('code_ref', XRefRole(lowercase=True, 
innernodeclass=nodes.literal, warn_dangling=True))



should create a new role named `code_ref` that uses a literal node to 
display links. Sphinx process the following


.. _xxx:

Section
===========


:code_ref:`xxx`





with no errors, but the link is broken.

What am I missing?
On Saturday, April 9, 2016 at 4:29:39 PM UTC+2, Andrea Cassioli wrote:
>
> Hi,
> I am struggling to find a way to do the following:
>
> - I would like to have a special role :myref: to link to specific sections 
> - the new role should use a different layout, say show text in verbatim
> - the new role should also have a class attribute so that it can be 
> customize using CSS
>
> What is a neat way to do this?
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to