From cf60df426114ae2ecea504d00c4fa31a153c7353 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 26 Jun 2017 17:01:19 -0400 Subject: [PATCH] switch to openstackdocstheme Change-Id: Iee591504ba5d7506ba41a9faaa1c293a5fe2db6a Depends-On: Ifc5512c0e2373cf3387e0e0498268eab092e52bb Signed-off-by: Doug Hellmann --- doc/source/conf.py | 9 ++++++++- releasenotes/source/conf.py | 3 ++- test-requirements.txt | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 420291460f..a90fca64ba 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -32,10 +32,15 @@ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', - 'oslosphinx', + 'openstackdocstheme', 'stevedore.sphinxext', ] +# openstackdocstheme options +repository_name = 'openstack/python-openstackclient' +bug_project = 'python-openstackclient' +bug_tag = '' + # Add any paths that contain templates here, relative to this directory. #templates_path = ['_templates'] @@ -105,6 +110,7 @@ modindex_common_prefix = ['openstackclient.'] # a list of builtin themes. #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 @@ -138,6 +144,7 @@ modindex_common_prefix = ['openstackclient.'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' +html_last_updated_fmt = '%Y-%m-%d %H:%M' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 38f0107cc4..5d270d9303 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -38,7 +38,7 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'oslosphinx', + 'openstackdocstheme', 'reno.sphinxext', 'sphinx.ext.extlinks', ] @@ -171,6 +171,7 @@ html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. # html_last_updated_fmt = '%b %d, %Y' +html_last_updated_fmt = '%Y-%m-%d %H:%M' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. diff --git a/test-requirements.txt b/test-requirements.txt index 58247585ec..661aa73d9a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,12 +6,12 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD mock>=2.0 # BSD -oslosphinx>=4.7.0 # Apache-2.0 +openstackdocstheme>=1.11.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0 reno!=2.3.1,>=1.8.0 # Apache-2.0 requests>=2.14.2 # Apache-2.0 requests-mock>=1.1 # Apache-2.0 -sphinx!=1.6.1,>=1.5.1 # BSD +sphinx>=1.6.2 # BSD stevedore>=1.20.0 # Apache-2.0 os-client-config>=1.27.0 # Apache-2.0 os-testr>=0.8.0 # Apache-2.0