Switch to RTD theme for gnocchi.xyz
Change-Id: If863329708b4c45f8ce9f57c6bf699ec153c7680
This commit is contained in:
parent
2376a0a102
commit
1c8c98dd92
@ -105,21 +105,9 @@ html_theme = 'openstack'
|
||||
# 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
|
||||
# documentation.
|
||||
if html_theme == "bootstrap":
|
||||
html_theme_options = {
|
||||
'navbar_class': "navbar navbar-inverse",
|
||||
'navbar_site_name': "Documentation",
|
||||
'navbar_links': [
|
||||
("Launchpad project", "https://launchpad.net/gnocchi", True),
|
||||
("Bug tracking", "https://bugs.launchpad.net/gnocchi", True),
|
||||
("Git", "http://github.com/openstack/gnocchi", True),
|
||||
],
|
||||
'navbar_sidebarrel': False,
|
||||
'navbar_pagenav': False,
|
||||
'globaltoc_depth': 2,
|
||||
}
|
||||
import sphinx_bootstrap_theme
|
||||
html_theme_path = [sphinx_bootstrap_theme.get_html_theme_path()]
|
||||
if html_theme == "sphinx_rtd_theme":
|
||||
import sphinx_rtd_theme
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
else:
|
||||
html_theme_path = [os.path.join(os.path.dirname(oslosphinx.__file__),
|
||||
'theme')]
|
||||
|
4
tox.ini
4
tox.ini
@ -71,6 +71,6 @@ commands = doc8 --ignore-path doc/source/rest.rst doc/source
|
||||
|
||||
[testenv:docs-gnocchi.xyz]
|
||||
deps = .[file,postgresql,test,doc]
|
||||
sphinx_bootstrap_theme
|
||||
sphinx_rtd_theme
|
||||
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
|
||||
commands = {toxinidir}/setup-postgresql-tests.sh sphinx-build -D html_theme=bootstrap doc/source doc/build
|
||||
commands = {toxinidir}/setup-postgresql-tests.sh sphinx-build -D html_theme=sphinx_rtd_theme doc/source doc/build
|
||||
|
Loading…
Reference in New Issue
Block a user