[PATCH 8/9] docs: Use ReadTheDocs theme
Stephen Finucane
stephen at that.guru
Tue Apr 11 09:27:50 AEST 2017
Signed-off-by: Stephen Finucane <stephen at that.guru>
---
docs/conf.py | 5 ++++-
tox.ini | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 6b978d2..06c1b4d 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,6 +19,7 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
+import sphinx_rtd_theme
# -- General configuration ------------------------------------------------
@@ -83,7 +84,7 @@ todo_include_todos = False
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = 'alabaster'
+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
@@ -95,3 +96,5 @@ html_theme = 'alabaster'
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
+
+html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
diff --git a/tox.ini b/tox.ini
index 78c1dd1..0392641 100644
--- a/tox.ini
+++ b/tox.ini
@@ -47,6 +47,7 @@ exclude = ./patchwork/migrations
deps =
sphinx>=1.5
reno>=2.2
+ sphinx_rtd_theme>=0.2.0,<0.3.0
commands =
sphinx-build -W -b html docs docs/_build/html
--
2.9.3
More information about the Patchwork
mailing list