mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Fixes #1686: ifconfig directive doesn't care about default config values.
This commit is contained in:
1 parent
28683a36c4
commit
3c872e66a4
2 files changed
+3
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user