On 2013-02-25, Kevin Horn wrote:
> On Tue, Feb 19, 2013 at 4:43 AM, Thomas Güttler <[email protected]> wrote:

...

> An extension wouldn't be terribly difficult by the way.  I think it would
> just be a matter of creating a custom text role that spits out the value of
> a config var.  It should be pretty simple to create, though I haven't seen
> anything like it yet, so perhaps it's not as easy as I think.

In my view, a new `directive for substitution definitions`__ would be more
in line with the existing reStructuredText syntax. Usually, a rst `role`
changes the meaning of the content while a rst `substitution` replaces the
content.

How about a new directive "echo" that expands environment variables:

.. |LANG| echo:: $LANG

The value of the environment variable LANG is |LANG|.


Günter


__ 
http://docutils.sourceforge.net/docs/ref/rst/directives.html#directives-for-substitution-definitions

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to