add the series name to the template context

Add a variable "series" to the template context so we can use it for
building URLs in templates.

Change-Id: I43c73e63b31d3986e1c34524a42113f7f36f34d5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-25 14:58:33 -04:00
parent 9a5c51991d
commit 3a2bac5df3
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ def _html_page_context(app, pagename, templatename, context, doctree):
bug_tag = app.config.bug_tag
if bug_tag:
_html_context_data['bug_tag'] = bug_tag
_html_context_data['series'] = _get_series_name()
context.update(_html_context_data)
context['other_versions'] = _get_other_versions(app)