diff options
author | Van Hung Pham <hungpv@vn.fujitsu.com> | 2017-06-30 19:04:55 +0700 |
---|---|---|
committer | Van Hung Pham <hungpv@vn.fujitsu.com> | 2017-06-30 19:06:18 +0700 |
commit | 2ea1fcacfde4f07bad36894322ee4e6c162b1287 (patch) | |
tree | 0b79dca01a317b1507058bcef296a5f70a7e566a /doc | |
parent | 937f4d62be338d0208c698ed85d377dc4ce137be (diff) | |
download | python-keystoneclient-2ea1fcacfde4f07bad36894322ee4e6c162b1287.tar.gz |
Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.
[0]https://review.openstack.org/#/c/472275/
Change-Id: If3a8f6668d0a4e32bd8a20330d973249ce6a5b46
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/conf.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index a6f84e1..d9d710e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -13,9 +13,7 @@ from __future__ import unicode_literals import os -import subprocess import sys -import warnings import pbr.version @@ -37,7 +35,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', - 'oslosphinx', + 'openstackdocstheme', ] todo_include_todos = True @@ -116,6 +114,7 @@ modindex_common_prefix = ['keystoneclient.'] # Sphinx are currently 'default' and 'sphinxdoc'. #html_theme_path = ["."] #html_theme = '_theme' +html_theme = 'openstackdocs' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -148,13 +147,7 @@ modindex_common_prefix = ['keystoneclient.'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. -git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", - "-n1"] -try: - html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8') -except Exception: - warnings.warn('Cannot get last updated time from git repository. ' - 'Not setting "html_last_updated_fmt".') +html_last_updated_fmt = '%Y-%m-%d %H:%M' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. @@ -232,3 +225,8 @@ intersphinx_mapping = { 'osloconfig': ('https://docs.openstack.org/developer/oslo.config/', None), 'keystoneauth1': (keystoneauth_url, None), } + +# -- Options for openstackdocstheme ------------------------------------------- +repository_name = 'openstack/python-keystoneclient' +bug_project = 'python-keystoneclient' +bug_tag = '' |