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
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
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():
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::