summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorDong Ma <winterma.dong@gmail.com>2017-07-04 02:21:00 +0800
committerDong Ma <winterma.dong@gmail.com>2017-07-06 15:50:11 +0000
commitbff426f0eb4a263e442633f01094b3c1b060d4e4 (patch)
tree815bcbbfe24b3bdbf9e3e293c8a9b985a1c8c017 /doc/source
parentb36cfac52531c663ec5f137ecceb7f348caf1a1b (diff)
downloadoslo-messaging-bff426f0eb4a263e442633f01094b3c1b060d4e4.tar.gz
switch from oslosphinx to openstackdocstheme
Change-Id: Ic3d9b9cbef0040512e37c8e99df7bb028e344bc9
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/conf.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 9ac6887..8eaa340 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -12,11 +12,19 @@ sys.path.insert(0, os.path.abspath('../..'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
- 'oslosphinx',
+ 'openstackdocstheme',
'stevedore.sphinxext',
'oslo_config.sphinxext',
]
+# openstackdocstheme options
+repository_name = 'openstack/oslo.messaging'
+bug_project = 'oslo.messaging'
+bug_tag = ''
+
+# Must set this variable to include year, month, day, hours, and minutes.
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
+
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable
@@ -49,20 +57,12 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
# html_theme_path = ["."]
-# html_theme = '_theme'
+html_theme = 'openstackdocs'
# html_static_path = ['static']
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project
-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".')
-
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
# [howto/manual]).