summaryrefslogtreecommitdiff
path: root/sphinx/builders/websupport.py
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 /sphinx/builders/websupport.py
parente4b42fe15fbba4882f2dd3b5b38a43db37d5947c (diff)
downloadsphinx-git-3e742bb43a041c21805cbcc0580e206ccad14cf4.tar.gz
Closes #1942: Fix a KeyError in websupport.
Diffstat (limited to 'sphinx/builders/websupport.py')
-rw-r--r--sphinx/builders/websupport.py2
1 files changed, 2 insertions, 0 deletions
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)