From 644d642e0208ba6929d008783c036ac724b14867 Mon Sep 17 00:00:00 2001
From: chenxing <chen.xing@99cloud.net>
Date: Fri, 14 Jul 2017 05:46:07 +0000
Subject: [PATCH] doc: Switch from oslosphinx to openstackdocstheme

Per the manuals migration effort, projects should use the
openstackdocstheme [1]

[1] https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Change-Id: I3dbba86369326e831ec5c47e368d04e28bcb93a1
---
 doc/source/conf.py          | 10 ++++++++--
 releasenotes/source/conf.py | 10 ++++++++--
 test-requirements.txt       |  2 +-
 3 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index 9cb193f76..0792f5619 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -5,7 +5,7 @@ import os
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
 sys.path.append(os.path.abspath('../lib'))
-extensions = ['oslosphinx', 'element_deps', 'sphinx.ext.autodoc']
+extensions = ['openstackdocstheme', 'element_deps', 'sphinx.ext.autodoc']
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
@@ -23,6 +23,12 @@ master_doc = 'index'
 project = u'diskimage-builder'
 copyright = u'2015-2016, Various Authors'
 
+# openstackdocstheme options
+repository_name = 'openstack/diskimage-builder'
+bug_project = 'diskimage-builder'
+bug_tag = ''
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
+
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
@@ -80,7 +86,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/releasenotes/source/conf.py b/releasenotes/source/conf.py
index ed01c8f27..0aefbc819 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -4,7 +4,7 @@ import os
 # Add any Sphinx extension module names here, as strings. They can be
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
-extensions = ['oslosphinx', 'reno.sphinxext']
+extensions = ['openstackdocstheme', 'reno.sphinxext']
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
@@ -22,6 +22,12 @@ master_doc = 'index'
 project = u'diskimage-builder'
 copyright = u'2016, Diskimage-builder contributors'
 
+# openstackdocstheme options
+repository_name = 'openstack/diskimage-builder'
+bug_project = 'diskimage-builder'
+bug_tag = ''
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
+
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
@@ -76,7 +82,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 3f88fb770..287016a7b 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -12,7 +12,7 @@ testtools>=1.4.0 # MIT
 
 # Doc requirements
 sphinx>=1.6.2 # BSD
-oslosphinx>=4.7.0 # Apache-2.0
+openstackdocstheme>=1.11.0  # Apache-2.0
 
 # releasenotes
 reno!=2.3.1,>=1.8.0 # Apache-2.0