I've been thinking of trying to make use of sphinx-build -D 
release="release string" in order to set the value of the "release" conf.py 
variable at the command line, and I cannot seem to do it. Let me be a bit 
more specific:

I'd like to set the value for 'release' on the command line, and then 
/within conf.py/ make conditional configuration processing based on its 
value:

if "string" in release.split():
   set value A for config var
else:
   set value B for config var

However, I can't seem to get the -D option to "override" any of the string 
configuration variables in conf.py that I can see.

Can someone assist me with working examples for how they've successfully 
used -D to override a conf.py setting, especially a setting taking a string 
value? How (for example) do I pass a string with spaces in it into 
sphinx-build? I have been trying -D release='release string', but that 
doesn't seem to work at all.

Any help would be appreciated.

--
Viktor Haag

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/97TmySLU2QoJ.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to