Actually, I had failed to specify the default role for some of my files. When I was using docutils, I was using the default-role directive in the master file, followed by multiple include directives. Switching to sphinx, I'm now using toctree, which doesn't pass through the default-role to the included documents.
The solution, of course, is to specify the default-role in conf.py Cheers, Carl. On 24 July 2013 20:02, Takayuki Shimizukawa <[email protected]> wrote: > Hi Carl, > > I think extlinks official extension will help you. > http://sphinx-doc.org/ext/extlinks.html > > The code is simple and short enough. > https://bitbucket.org/birkenfeld/sphinx/src/379cbebe/sphinx/ext/extlinks.py > > Best regards, > -- > Takayuki SHIMIZUKAWA > http://about.me/shimizukawa > > > 2013/7/24 Carl Cerecke <[email protected]>: >> I have a custom role which inserts nodes created by >> docutils.nodes.reference(...), but in the generated HTML the text is >> inside <cite> tags and the refuri is nowhere to be seen. The code does >> generate links correctly using plain docutils (I'm in the process of >> migrating to sphinx from docutils), and is not different in principle >> from the code on >> http://doughellmann.com/2010/05/defining-custom-roles-in-sphinx.html >> >> I'm not sure where to start looking to find the cause of this problem. >> Any ideas? >> >> Cheers, >> Carl. >> >> -- >> 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 http://groups.google.com/group/sphinx-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > -- > 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 http://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/groups/opt_out.
