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:
parent
53c4ae72e9
commit
cd2674bb95
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue