summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-07 16:56:15 +0000
committerGerrit Code Review <review@openstack.org>2017-07-07 16:56:15 +0000
commitc697e793af55634ade62bd278d67f49c4c33b4e5 (patch)
tree55ac3125e22fdf6fa60ec1bd8d660b7a48a0c944 /doc
parentb5bd8a86ca8d5c9ea01407054b1137616a804d07 (diff)
parent27296d58587a1a41535667d04b76c466ac404b53 (diff)
downloadkeystonemiddleware-c697e793af55634ade62bd278d67f49c4c33b4e5.tar.gz
Merge "Switch from oslosphinx to openstackdocstheme"
Diffstat (limited to 'doc')
-rw-r--r--doc/source/conf.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2cfd7d4..0cef1f7 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
@@ -43,7 +41,7 @@ extensions = ['sphinx.ext.autodoc',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.intersphinx',
- 'oslosphinx',
+ 'openstackdocstheme',
'oslo_config.sphinxconfiggen'
]
@@ -126,6 +124,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
@@ -158,14 +157,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.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.
@@ -241,3 +233,8 @@ 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 = ''