From a67b68acc41ba0d12067f32bba69e35a9f05ef42 Mon Sep 17 00:00:00 2001 From: zhurong Date: Fri, 7 Jul 2017 15:45:09 +0800 Subject: [PATCH] switch to openstackdocstheme Change-Id: Icc6e852398bfdb6cdfa9105e272d1dffe927aa3e --- doc/source/conf.py | 15 ++++++++++++--- releasenotes/source/conf.py | 12 ++++++++++-- test-requirements.txt | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index aa74204f9..7149e9040 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -45,7 +45,8 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', 'sphinx.ext.ifconfig', - 'sphinx.ext.graphviz'] + 'sphinx.ext.graphviz', + 'openstackdocstheme'] # Add any paths that contain templates here, relative to this directory. templates_path = [] @@ -65,7 +66,7 @@ master_doc = 'index' # General information about the project. project = u'Dashboard' -copyright = u'2013, Mirantis, Inc' +copyright = u'OpenStack Foundation' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -128,7 +129,15 @@ man_pages = [] # 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' + +# openstackdocstheme options +repository_name = 'openstack/murano-dashboard' +bug_project = 'murano' +bug_tag = '' + +# Must set this variable to include year, month, day, hours, and minutes. +html_last_updated_fmt = '%Y-%m-%d %H:%M' # 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 55e4ae9eb..46cc24ab8 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', ] @@ -112,7 +112,15 @@ 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' + +# openstackdocstheme options +repository_name = 'openstack/murano-dashboard' +bug_project = 'murano' +bug_tag = '' + +# Must set this variable to include year, month, day, hours, and minutes. +html_last_updated_fmt = '%Y-%m-%d %H:%M' # 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 1e827bd8b..fbaeba0a2 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -16,7 +16,7 @@ mock>=2.0 # BSD mox3!=0.19.0,>=0.7.0 # Apache-2.0 # Docs Requirements -oslosphinx>=4.7.0 # Apache-2.0 +openstackdocstheme>=1.11.0 # Apache-2.0 sphinx>=1.6.2 # BSD reno!=2.3.1,>=1.8.0 # Apache-2.0