summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authordaniel <daniel.woste@useblocks.com>2017-06-26 08:53:10 +0200
committerdaniel <daniel.woste@useblocks.com>2017-06-26 08:58:45 +0200
commit4ce6da9c96190e3d6599688bc6eceebc81cfb801 (patch)
treeb1272fbdeb41094c0f8f4a4fe5a32e0d233c5bd5 /sphinx
parent957c132c230b13ca3deee346b8fcb85a98919798 (diff)
downloadsphinx-git-4ce6da9c96190e3d6599688bc6eceebc81cfb801.tar.gz
Unknow html_theme_options throw warnings instead of errors.
New behavior: a sphinx build does not stop, if for the configured theme an unknown but also unneeded html_theme_options is provided. Fixed #3884
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/theming.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index 7a11f4bbf..9e62c13a4 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -133,8 +133,9 @@ class Theme(object):
for option, value in iteritems(overrides):
if option not in options:
- raise ThemeError('unsupported theme option %r given' % option)
- options[option] = value
+ logger.warning('unsupported theme option %r given' % option)
+ else:
+ options[option] = value
return options