doc: Switch from oslosphinx to openstackdocstheme

Change-Id: I4c242007dedf74821acae926329f4a59cedae6d5
This commit is contained in:
chenxing 2017-06-27 05:31:57 +00:00 committed by Stephen Finucane
parent e11efd8d76
commit 945e155f05
3 changed files with 18 additions and 6 deletions

View File

@ -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 ------------------------------------------

View File

@ -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

View File

@ -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