#
# Patchwork documentation build configuration file
+try:
+ import sphinx_rtd_theme
+ has_rtd_theme = True
+except ImportError:
+ has_rtd_theme = False
+
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
# ones.
extensions = ['sphinx.ext.todo', 'reno.sphinxext']
+if has_rtd_theme:
+ html_theme = 'sphinx_rtd_theme'
+ # TODO(stephenfin): Remove this once we use v0.2.5
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+
# Add any paths that contain templates here, relative to this directory.
templates_path = []