From cbc8503d20f3c8ab84e5441fdd8ea66c0b2dee21 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 28 Jun 2017 17:18:56 -0400 Subject: [PATCH] switch from oslosphinx to openstackdocstheme Change-Id: Idd2542a0be57e9ed52718654649f945b85c4ed0a Signed-off-by: Doug Hellmann --- doc/source/conf.py | 9 ++++++++- releasenotes/source/conf.py | 11 +++++++++-- test-requirements.txt | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 3d24dfd..ec01574 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -6,7 +6,14 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'oslosphinx'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'openstackdocstheme'] + +# openstackdocstheme options +repository_name = 'openstack/python-designateclient' +bug_project = 'python-designateclient' +bug_tag = '' +html_last_updated_fmt = '%Y-%m-%d %H:%M' +html_theme = 'openstackdocs' # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index ba8e8f3..5a7e2c8 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -37,10 +37,17 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'oslosphinx', + 'openstackdocstheme', 'reno.sphinxext', ] +# openstackdocstheme options +repository_name = 'openstack/python-designateclient' +bug_project = 'python-designateclient' +bug_tag = '' +html_last_updated_fmt = '%Y-%m-%d %H:%M' +html_theme = 'openstackdocs' + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -111,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 = 'default' # 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 0ef5deb..d4d091c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,6 +11,6 @@ python-subunit>=0.0.18 # Apache-2.0/BSD requests-mock>=1.1 # Apache-2.0 sphinx>=1.6.2 # BSD testrepository>=0.0.18 # Apache-2.0/BSD -oslosphinx>=4.7.0 # Apache-2.0 +openstackdocstheme>=1.11.0 # Apache-2.0 reno!=2.3.1,>=1.8.0 # Apache-2.0 tempest>=14.0.0 # Apache-2.0