diff options
author | Doug Hellmann <doug@doughellmann.com> | 2017-06-23 14:38:02 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2017-06-28 12:25:32 -0400 |
commit | 4565e2bf4514782d2b32bfff447875ed6b68058e (patch) | |
tree | 146cbdfcf7f3dac7cac33e91a73f0f4a2274f65b | |
parent | cecd30a91bc7d84b3385d7659b585df17446b835 (diff) | |
download | python-glanceclient-4565e2bf4514782d2b32bfff447875ed6b68058e.tar.gz |
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 <doug@doughellmann.com>
-rw-r--r-- | doc/source/conf.py | 12 |
1 files changed, 11 insertions, 1 deletions
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. |