From 4565e2bf4514782d2b32bfff447875ed6b68058e Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 23 Jun 2017 14:38:02 -0400 Subject: 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: I316bd585f91064af4d1d1e7b834986619fc3a2d3 Depends-On: Icf3a40ed104cfd828f532f6f2b112ed02f996ff5 Signed-off-by: Doug Hellmann --- doc/source/conf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4185e4b..574b931 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -25,7 +25,15 @@ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), # 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/python-glanceclient' +bug_project = 'python-glanceclient' +bug_tag = '' # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. @@ -68,6 +76,8 @@ html_theme_path = [openstackdocstheme.get_html_theme_path()] # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project +html_last_updated_fmt = '%Y-%m-%d %H:%M' + # -- Options for man page output ---------------------------------------------- # Grouping the document tree for man pages. -- cgit v1.2.1