hm, not enough time to ensure an exactly matching answer -- but as answers are a bit rare here, i'll give it a quick shot:
take a look at intersphinx, at the pagename global variable: http://sphinx.pocoo.org/templating.html#pagename or/and at construcs like this for getting "out" of root sphinx dir: {{ pathto(master_doc, 1) }}/../.. also search the googlegroups archives a little, there are a few maybe remotely, but still, related threads. pls tell me what you ended up using: might become interesting for me in the future as well. -paul On 05/26/2011 10:03 PM, guillermooo wrote:
Hi, I have two separate Sphinx projects: acme/en acme/es They are symmetric, so any .rst file in acme/en is also present in acme/es. Now I would like to link from any .html file in the build docs from acme/en to the built file with the same name from acme/es, and viceversa. What I want is a hyperlink in the built docs, so I suppose this is a job for templates. For instance, in en/build/html/basic_concepts.html I want a link to es/build/htmlbasic_concepts.html, and viceversa. So I think I need the following: 1) How do I obtain the name of the current (built) document in the template? 2) How do I specify a path relative to a common location for a whole project, like acme/en, the root of one of my projects? I thought "pathto()" would do what I want, but I can't figure out how to make it use the name of the current document. Thanks! Guillermo
-- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.