summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-07-25 16:54:51 +0200
committerGeorg Brandl <georg@python.org>2015-07-25 16:54:51 +0200
commit3e742bb43a041c21805cbcc0580e206ccad14cf4 (patch)
tree6436405548447359e20944f5c1993f3d838d8bc3
parente4b42fe15fbba4882f2dd3b5b38a43db37d5947c (diff)
downloadsphinx-git-3e742bb43a041c21805cbcc0580e206ccad14cf4.tar.gz
Closes #1942: Fix a KeyError in websupport.
-rw-r--r--CHANGES1
-rw-r--r--sphinx/builders/websupport.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index d88d41aed..a4e854d76 100644
--- a/CHANGES
+++ b/CHANGES
@@ -35,6 +35,7 @@ Bugs fixed
* #1915: Do not generate smart quotes in doc field type annotations.
* #1796: On py3, automated .mo building caused UnicodeDecodeError.
* #1923: Use babel features only if the babel latex element is nonempty.
+* #1942: Fix a KeyError in websupport.
Release 1.3.1 (released Mar 17, 2015)
diff --git a/sphinx/builders/websupport.py b/sphinx/builders/websupport.py
index 4a33667c6..66af0ab80 100644
--- a/sphinx/builders/websupport.py
+++ b/sphinx/builders/websupport.py
@@ -114,6 +114,8 @@ class WebSupportBuilder(PickleHTMLBuilder):
doc_ctx = {
'body': ctx.get('body', ''),
'title': ctx.get('title', ''),
+ 'css': ctx.get('css', ''),
+ 'script': ctx.get('script', ''),
}
# partially render the html template to get at interesting macros
template = self.templates.environment.get_template(templatename)