diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/conf.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index cf7629d..6cbf48a 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 @@ -42,7 +40,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', - 'oslosphinx', + 'openstackdocstheme', 'oslo_config.sphinxconfiggen' ] @@ -125,6 +123,7 @@ modindex_common_prefix = ['keystonemiddleware.'] # 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 @@ -157,14 +156,7 @@ html_static_path = ['_static'] # 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.Popen( - git_cmd, stdout=subprocess.PIPE).communicate()[0] -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. @@ -236,7 +228,12 @@ latex_documents = [ # If false, no module index is generated. #latex_use_modindex = True -keystoneclient = 'https://docs.openstack.org/developer/python-keystoneclient/' +keystoneclient = 'https://docs.openstack.org/python-keystoneclient/latest/' intersphinx_mapping = {'keystoneclient': (keystoneclient, None), } + +# -- Options for openstackdocstheme ------------------------------------------- +repository_name = 'openstack/keystonemiddleware' +bug_project = 'keystonemiddleware' +bug_tag = '' |