In ifconfig.py I have:
 
def setup(app):
    app.add_node(ifconfig)
    app.add_directive('ifconfig', IfConfig)
    app.connect('doctree-resolved', process_ifconfig_nodes)
    app.add_config_value('infconf_product', 'main', True)
 
 
In an rst file I have:
 
.. ifconfig:: infconf_product in ('main')
    
    Hello this should be included for main builds.
   
 
When I build I get the message:
Exception occurred in .... ifconfig expression:
NameError: name 'ifconfig_product' is not defined.
 
anyone spot what I have done wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to