From 3a2bac5df3ba53284c1bf4f56c08bfc93c99ae0b Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 25 Jun 2018 14:58:33 -0400 Subject: [PATCH] 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 --- openstackdocstheme/ext.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstackdocstheme/ext.py b/openstackdocstheme/ext.py index 0673a79a..58dd015b 100644 --- a/openstackdocstheme/ext.py +++ b/openstackdocstheme/ext.py @@ -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)