aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-09 07:15:26 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-09 07:15:26 -0800
commitc65204eddf4cb029343c586a8c849b4ace67b25e (patch)
tree6ad958752c1df8c4428ebbd9cccd272b5df13c63 /docs/conf.py
parent6b3be7f0078bd69f39b6666f7ea84040b7274e68 (diff)
parentdf52fa9d388c2fc7d721c0fba5ca21ec88a01a15 (diff)
downloadcryptography-c65204eddf4cb029343c586a8c849b4ace67b25e.tar.gz
cryptography-c65204eddf4cb029343c586a8c849b4ace67b25e.tar.bz2
cryptography-c65204eddf4cb029343c586a8c849b4ace67b25e.zip
Merge branch 'master' into padding-fixes
Conflicts: cryptography/hazmat/primitives/padding.py
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 69be32e9..77050e72 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,12 @@
import os
import sys
+try:
+ import sphinx_rtd_theme
+except ImportError:
+ sphinx_rtd_theme = None
+
+
# 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.
@@ -98,16 +104,18 @@ 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'
+
+if sphinx_rtd_theme:
+ html_theme = "sphinx_rtd_theme"
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+else:
+ html_theme = "default"
# 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.
#html_theme_options = {}
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
-
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None