Is it possible to use some kind of variable mechanism in code blocks?
I.e. i have such line in `conf.py`:
my_config_value = 42
rst_epilog = '.. |my_conf_val| replace:: %d' % my_config_value
And when i use it in some regular text like so:
My config value is |my_conf_val|!
Sphinx nicely replace the var and output as follows:
My config value is 42!
>
But when i try the same using code block:
.. code-block:: javascript
// |my_conf_val|
I get unreplaced *|my_conf_val|* string in the output.
Is it possible to achieve something similar (variables) inside code block?
Not sure if its related but it seems that other directives also does not
handle this properly, i.e. `http` directive from `sphinxcontrib.httpdomain`
package:
.. http:get:: |my_conf_va||/users
Is also not replacing.
--
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.