Re: [sphinx-dev] How to override values in conf.py by values read from a Settings.yml (YAML) file?

2012-07-25 Thread Sebastian Wiesner
2012/7/23 Martin Bless m.bl...@gmx.de: Hello everybody, maybe there is an obvious solution - but I just don't see it. At the end of 'conf.py' I want to read and parse an additional 'Settings.yml' configuration file and add those settings to what we already have in 'conf.py'. If present

[sphinx-dev] Re: How to override values in conf.py by values read from a Settings.yml (YAML) file?

2012-07-25 Thread Martin Bless
Hello Takayuki, for k in more: exec(%s = %r % (k, more[k])) I see, this works. index.rst:: Welcome to conf.py test = :release: |release| :version: |version| That looked very promising at first sight - I was very excited. But it's restricted to

[sphinx-dev] Re: How to override values in conf.py by values read from a Settings.yml (YAML) file?

2012-07-25 Thread Martin Bless
Hi Sebastian, Quick and dirty: globals().update(read_my_dict_from_yaml()) Well, looks like it's even the right and clean solution in my case! Alternativel you can update the settings after Sphinx has parsed conf.py: def setup(app): for key, value in read_my_dict_from_yaml():

Re: [sphinx-dev] Contributions in TODO, autodoc and general

2012-07-25 Thread Kevin Horn
On Wed, Jul 25, 2012 at 12:58 AM, Kevin Hunter hunt...@gmail.com wrote: Without directions suggesting otherwise, here's my best guess at how best to contribute: submit a pull request[2] on bitbucket.org. The main repository behind Sphinx::