Fixes #1686: ifconfig directive doesn't care about default config values.

This commit is contained in:
shimizukawa
2015-01-17 16:01:53 +09:00
parent 28683a36c4
commit 3c872e66a4
2 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ Bugs fixed
python-mecab is not installed.
* #1674: Do not crash if a module's ``__all__`` is not a list of strings.
* #1673: Fix crashes with :confval:`nitpick_ignore` and ``:doc:`` references.
* #1686: ifconfig directive doesn't care about default config values.
Release 1.2.3 (released Sep 1, 2014)

View File

@@ -48,7 +48,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: