From 807c910c4fe29d534d0822b5c1cd2b0ce638d3a2 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 23 Jun 2017 14:42:45 -0400 Subject: [PATCH] use openstackdocstheme html context Set some of the new config values and enable openstackdocstheme as an extension so it will inject values into the page context as it writes each documentation page. This ensures the pages link to the right bug tracker, etc. Change-Id: I0bc0f1c42e1e54af0dc29d7dfcb23293a3347723 Depends-On: Icf3a40ed104cfd828f532f6f2b112ed02f996ff5 Signed-off-by: Doug Hellmann --- doc/source/conf.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index ae8e7d84..9cc93950 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -30,7 +30,16 @@ import openstackdocstheme # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.autodoc'] +extensions = [ + 'sphinx.ext.autodoc', + 'openstackdocstheme', +] + +# openstackdocstheme options +repository_name = 'openstack/cliff' +bug_project = 'python-cliff' +bug_tag = '' +html_last_updated_fmt = '%Y-%m-%d %H:%M' # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']