Hello, conf.py is a simple Python script...
So you can use some Python to get/set your version number. Best, Nikolaj On 14-11-10 05:13 PM, BuildMonkey wrote: > In my conf.py, I am using html_title set to: > html_title = "Version is " + version > > I am then passing in the version variable from the command line via our > build system, so > sphinx-build... -D version=1.0.0 ... > > I see that the 'version' variable is updated, but the 'html_title' is not. > It is using the default value of 'version' set in the conf.py file. > > I'd like to avoid passing in html_title into the command line too. Is there > a way to let conf.py know to use the version variable passed in from the > command line? > > Thanks. > -- 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.
