summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-08-29 05:03:19 +0000
committerGerrit Code Review <review@openstack.org>2018-08-29 05:03:19 +0000
commit5bcb0519150e2b3e7e4f077e44dd6d7b3eb17cf9 (patch)
tree5f0c8bc2b51ed8b420d54a9c1f44bb7fb8f56394
parentea82a1598b818cdbc0c2825736ba8ba64ae58285 (diff)
parent8236cdbf37a27a4bac9f097c25d37db87692596f (diff)
downloadgit-review-5bcb0519150e2b3e7e4f077e44dd6d7b3eb17cf9.tar.gz
Merge "Use doc/requirements and openstackdocstheme"
-rw-r--r--doc/requirements.txt2
-rw-r--r--doc/source/conf.py4
-rw-r--r--test-requirements.txt2
-rw-r--r--tox.ini3
4 files changed, 7 insertions, 4 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 0000000..c69cea6
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,2 @@
+sphinx!=1.6.6,!=1.6.7 # BSD
+openstackdocstheme>=1.11.0 # Apache-2.0
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 42aa408..5ff4600 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -30,7 +30,7 @@ import os
# ones.
extensions = [
'sphinx.ext.autodoc',
- 'oslosphinx',
+ 'openstackdocstheme',
]
# Add any paths that contain templates here, relative to this directory.
@@ -92,7 +92,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 41b80c1..6bc3c81 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -3,5 +3,3 @@ mock
fixtures>=0.3.14
testrepository>=0.0.18
testtools>=0.9.34
-oslosphinx
-sphinx>=1.1.2,!=1.2.0,<1.3
diff --git a/tox.ini b/tox.ini
index 108f77c..05cbda1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,6 +22,9 @@ commands = flake8
commands = python setup.py sdist {posargs}
[testenv:docs]
+deps =
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html