Not sure if this is what you mean but since conf.py is just a Python
file, you can do string substitutions in it.
For example, for I happen to do:
rst_prolog="""
.. |versionG| replace:: :guilabel:`%s`
""" % (version,)
because I sometimes need to include the version number in :guilabel:
styled text and :guilabel:`blah-|version|` won't work.
So now I can do:
Right-click :guilabel:`blah-`\ |versionG| to do foo.
As far as links go, you might try this technique in combination with
the sphinx.ext.extlinks – Markup to shorten external links extension.
See http://sphinx.pocoo.org/ext/extlinks.html for details. (Pretty
sure this works for any links not just "external" ones).
> I think there is a general issue with inline markup, where the
> contents of the markup is not interpreted, and as a consequence macros
> are not expanded. This affects probably more than just links.
Missing support for nested inline markup in reStructuredText is a known
problem:
http://docutils.sourceforge.net/FAQ.html#is-nested-inline-markup-possible
> I wouldn't mind going to some effort to overcome this, e.g. by using
> reST directives, I just can't think of how :-/.
Putting the effort into solving the core problem would IMO be the best
long term solution.
Günter
Yes. It's not the same thing, but it **looks** right (which is all
that matters in my case).
-- TP