fix html-page-context event handler

The event handler should return a string if it wants to replace the
template, but should otherwise return None and update the context in
place.

Change-Id: Ic4b19c7d19eda866ba139913cf817c99a65c8c08
Closes-Bug: #1505311
This commit is contained in:
Doug Hellmann 2015-10-12 19:50:40 +00:00
parent 53c4ae72e9
commit cd2674bb95
1 changed files with 0 additions and 1 deletions

View File

@ -34,7 +34,6 @@ def _html_page_context(app, pagename, templatename, context, doctree):
parsed = parse.urlparse(git_remote)
_cgit_link = CGIT_BASE + parsed.path.lstrip('/')
context['cgit_link'] = _cgit_link
return context
def builder_inited(app):