Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit fb23a9b

Browse files
committed
Configure docs to build with ReadTheDocs theme
1 parent 53a312a commit fb23a9b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@
103103

104104
# The theme to use for HTML and HTML Help pages. See the documentation for
105105
# a list of builtin themes.
106-
html_theme = 'default'
106+
try:
107+
import sphinx_rtd_theme
108+
except ImportError:
109+
html_theme = 'default'
110+
else:
111+
html_theme = 'sphinx_rtd_theme'
107112

108113
# Theme options are theme-specific and customize the look and feel of a theme
109114
# further. For a list of options available for each theme, see the

requirements/docs.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sphinxcontrib-issuetracker
1+
sphinxcontrib-issuetracker
2+
sphinx_rtd_theme

0 commit comments

Comments
 (0)