From 65ce1a22896e52ff59a23a393e3bc4227f55f006 Mon Sep 17 00:00:00 2001
From: Doug Hellmann <doug@doughellmann.com>
Date: Fri, 30 Jun 2017 10:14:38 -0400
Subject: [PATCH] switch from oslosphinx to openstackdocstheme

Change-Id: I83c5856a49cdfd912eb2d62314848a4cc4905fe1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
---
 doc/source/conf.py          |  9 ++++++++-
 releasenotes/source/conf.py | 10 ++++++++--
 test-requirements.txt       |  2 +-
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index e55e85b19..aaf41b319 100755
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -5,10 +5,17 @@ sys.path.insert(0, os.path.abspath('../..'))
 
 extensions = [
     'sphinx.ext.autodoc',
-    'oslosphinx',
+    'openstackdocstheme',
     'reno.sphinxext'
 ]
 
+# openstackdocstheme options
+repository_name = 'openstack-infra/shade'
+bug_project = '760'
+bug_tag = ''
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
+html_theme = 'openstackdocs'
+
 # The suffix of source filenames.
 source_suffix = '.rst'
 
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
index 1abd91cc2..8e1265344 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -38,10 +38,16 @@
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
 extensions = [
-    'oslosphinx',
+    'openstackdocstheme',
     'reno.sphinxext',
 ]
 
+# openstackdocstheme options
+repository_name = 'openstack-infra/shade'
+bug_project = '760'
+bug_tag = ''
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
+
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 
@@ -112,7 +118,7 @@ pygments_style = 'sphinx'
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'default'
+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
diff --git a/test-requirements.txt b/test-requirements.txt
index 25a1ef26b..c69d2a2f5 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -7,7 +7,7 @@ coverage!=4.4,>=4.0 # Apache-2.0
 fixtures>=3.0.0 # Apache-2.0/BSD
 mock>=2.0 # BSD
 python-subunit>=0.0.18 # Apache-2.0/BSD
-oslosphinx>=4.7.0 # Apache-2.0
+openstackdocstheme>=1.11.0 # Apache-2.0
 requests-mock>=1.1 # Apache-2.0
 sphinx>=1.6.2 # BSD
 testrepository>=0.0.18 # Apache-2.0/BSD