diff options
author | chenxing <chen.xing@99cloud.net> | 2017-06-27 05:31:57 +0000 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2017-07-12 15:12:45 +0100 |
commit | 945e155f05d3a76fa55c68c77564b136ee3f9ba1 (patch) | |
tree | 6e20c9a3b33e2fc0f77fc1381ac3f37ff0505b70 | |
parent | e11efd8d762e5d9875afca9bcb76ea9ae69238c5 (diff) | |
download | python-novaclient-945e155f05d3a76fa55c68c77564b136ee3f9ba1.tar.gz |
doc: Switch from oslosphinx to openstackdocstheme
Change-Id: I4c242007dedf74821acae926329f4a59cedae6d5
-rw-r--r-- | doc/source/conf.py | 18 | ||||
-rw-r--r-- | releasenotes/source/conf.py | 4 | ||||
-rw-r--r-- | test-requirements.txt | 2 |
3 files changed, 18 insertions, 6 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 19d10bde..46a7ae33 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -79,7 +79,10 @@ gen_ref("v2", "Version 2 API", sorted(get_module_names())) # 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', 'oslosphinx'] +extensions = [ + 'sphinx.ext.autodoc', + 'openstackdocstheme', +] autoclass_content = 'both' @@ -92,7 +95,10 @@ source_suffix = '.rst' # The master toctree document. master_doc = 'index' -# General information about the project. +# openstackdocstheme options +repository_name = 'openstack/python-novaclient' +bug_project = 'python-novaclient' +bug_tag = 'doc' project = 'python-novaclient' copyright = 'OpenStack Contributors' @@ -114,7 +120,13 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = 'default' +html_theme = 'openstackdocs' + +# -- Options for openstackdocstheme ------------------------------------------- + +repository_name = 'openstack/python-novaclient' +bug_project = 'python-novaclient' +bug_tag = '' # -- Options for manual page output ------------------------------------------ diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 87606398..7a743aca 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -26,8 +26,8 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'oslosphinx', 'reno.sphinxext', + 'openstackdocstheme', ] # Add any paths that contain templates here, relative to this directory. @@ -100,7 +100,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 4514a466..d3cbba2b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,7 +15,7 @@ python-neutronclient>=6.3.0 # Apache-2.0 requests-mock>=1.1 # Apache-2.0 sphinx>=1.6.2 # BSD os-client-config>=1.27.0 # Apache-2.0 -oslosphinx>=4.7.0 # Apache-2.0 +openstackdocstheme>=1.11.0 # Apache-2.0 osprofiler>=1.4.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD |