Yann, not sure whether this helps (it is for the html builder), but I use a custom layout.html template with hard-coded absolute urls. For example here: https://github.com/lsaffre/lino/blob/master/docs/.templates/layout.html
Currently I copy that layout.html to most of my doctrees and edit them. To this more elegant, I would appreciate to have Sphinx's configuration settings available in the template context. But AFAICS it is not currently available: http://sphinx-doc.org/templating.html#working-with-the-builtin-templates For the json builder I am surprised that you need the absolute url in the json output. Why can't the software that reads your json files interprete these links? Luc On 05/07/15 00:44, Yann B. wrote: > Hi, > > Is there a way to get absolute URLs in the generated HTML ? In my case I > use the JSON builder and It's quite complicated to have links that works > depending on whether the current URL has a trailing slash or not. I used > to rewrite URLs at my app's router level, redirecting pages with missing > trailing slashes, but I can't do that anymore. > > Right now a link to another document is like this: "my/document". The > documentation root on my website is "/doc/", so I'd like the generated > links to be like "/doc/my/document/". Is there a way to achieve this ? > > Thanks, > > Yann > > -- > 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 > <mailto:sphinx-users+unsubscr...@googlegroups.com>. > To post to this group, send email to sphinx-users@googlegroups.com > <mailto:sphinx-users@googlegroups.com>. > Visit this group at http://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sphinx-users@googlegroups.com. Visit this group at http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.