Skip to content

Commit b5a7de5

Browse files
committed
Use RTD sphinx theme
1 parent b88e73d commit b5a7de5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/conf.py

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

107107
# The theme to use for HTML and HTML Help pages. See the documentation for
108108
# a list of builtin themes.
109-
html_theme = 'classic'
109+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
110+
111+
if not on_rtd: # only import and set the theme if we're building docs locally
112+
import sphinx_rtd_theme
113+
html_theme = 'sphinx_rtd_theme'
114+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
110115

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

0 commit comments

Comments
 (0)