Hi Sphinx Users, I'm trying to replace small phrases in a document, based on tags. My sourcefile contains the following:
.. only:: R710 .. |network-cables| replace:: Copper Ethernet cables, 2 per server .. |network-ports| replace:: ports labeled Gb1 and Gb2 .. only:: R720 .. |network-cables| replace:: Copper Ethernet cables, 4 per server .. |network-ports| replace:: ports labeled Gb1, Gb2, Gb3 and Gb4 But building the documentation produces the following errors: .../hardware.rst:120: ERROR: Duplicate substitution definition name: "network-cables". .../hardware.rst:121: ERROR: Duplicate substitution definition name: "network-ports". And the last substitution is always used, regardless of the current tag. Using nonsense tag names produces the same result - it seems that the substitutions are processed before the only directive is evaluated. I've also tried the ifconfig directive, with the same result. Is there any way to define conditional substitutions? Thanks Rob. -- 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. For more options, visit https://groups.google.com/d/optout.
