diff options
author | shimizukawa <shimizukawa@gmail.com> | 2015-01-17 10:05:00 +0300 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2015-01-17 10:05:00 +0300 |
commit | d9f192b3bf4c3acf50d6f6ea037491eab9d2c81d (patch) | |
tree | 1ab96fe599c7c7dd981f47f3b8bc2cf36fd294df /sphinx/ext/ifconfig.py | |
parent | 668fa9935bf0e2f024cd0a2dedd7fe9e63bd0ae4 (diff) | |
parent | 3c872e66a4e2482eb3888052194c22562ee011a8 (diff) |
Merge branch 'stable'
Diffstat (limited to 'sphinx/ext/ifconfig.py')
-rw-r--r-- | sphinx/ext/ifconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/ifconfig.py b/sphinx/ext/ifconfig.py index 279d2aeed..02e5db424 100644 --- a/sphinx/ext/ifconfig.py +++ b/sphinx/ext/ifconfig.py @@ -49,7 +49,8 @@ class IfConfig(Directive): def process_ifconfig_nodes(app, doctree, docname): - ns = app.config.__dict__.copy() + ns = {k: app.config[k] for k in app.config.values} + ns.update(app.config.__dict__.copy()) ns['builder'] = app.builder.name for node in doctree.traverse(ifconfig): try: |