> As far as links go, you might try this technique in combination with
> the sphinx.ext.extlinks – Markup to shorten external links extension.
> Seehttp://sphinx.pocoo.org/ext/extlinks.htmlfor details. (Pretty
> sure this works for any links not just "external" ones).

Just to let you know: The hint at the Sphinx extension brought me on
the right track. I solved the issue by implementing a simple, source-
level macro facility through a custom Sphinx extension. The extension
just registers for the 'source-read' event of Sphinx, and does a
string.Template().safe_substitute() on the page contents, with a
predefined map of substitution strings.

This allows me to use these macros in arbitrary places in the reST
documentation, be it running text, links, inline markup, or reST
directives. :-)

Thanks everybody,
T.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@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.

Reply via email to