doc: remove oslosphinx support

Change-Id: I924a60ff8635a684d2bc34870baf61c02dbe4d8a
This commit is contained in:
Julien Danjou 2017-04-20 15:34:38 +02:00
parent 4c46b69067
commit f8e1c2192e
3 changed files with 5 additions and 12 deletions

View File

@ -14,8 +14,6 @@ import datetime
import os
import subprocess
import oslosphinx
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@ -101,17 +99,13 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'openstack'
html_theme = 'sphinx_rtd_theme'
# 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 == "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')]
import sphinx_rtd_theme
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# The name for this set of Sphinx documents. If None, it defaults to

View File

@ -58,8 +58,8 @@ file =
lz4>=0.9.0
tooz>=1.38
doc =
oslosphinx>=2.2.0
sphinx
sphinx_rtd_theme
sphinxcontrib-httpdomain
PyYAML
Jinja2

View File

@ -129,10 +129,9 @@ commands = doc8 --ignore-path doc/source/rest.rst doc/source
[testenv:docs-gnocchi.xyz]
basepython = python2.7
deps = .[file,postgresql,test,doc]
sphinx_rtd_theme
sphinxcontrib-versioning
# for 2.x doc
pytimeparse
retrying
commands =
pifpaf -g GNOCCHI_INDEXER_URL run postgresql -- sphinx-versioning build doc/source doc/build/html -- -D html_theme=sphinx_rtd_theme
pifpaf -g GNOCCHI_INDEXER_URL run postgresql -- sphinx-versioning build doc/source doc/build/html