Stéfan van der Walt schrieb:
> Hi all,
> 
> I experimented with the ifconfig extension, and it looks like, in
> order to create a new variable, you need to do the following in
> conf.py:
> 
> myvar = 1
> 
> def setup(app):
>     app.add_config_value('myvar', myvar, True)
> 
> If I leave out the first or the second definitions of myvar, then
> Sphinx complains.  Is this the way it's supposed to work?  If so, I'll
> write a patch to the docs to describe it more clearly.

The second argument of add_config_value is just the default value, so
it should be fine to use add_config_value('myvar', 1, True).

You may also want to check out the "only" directive, which works with
tags as opposed to config values.

cheers,
Georg


--~--~---------~--~----~------------~-------~--~----~
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