Skip to content

Commit d923e5e

Browse files
committed
ENH: adding support for rendering
1 parent 07df46f commit d923e5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,13 @@
153153
]
154154

155155

156+
# -- Read The Docs -----------------------------------------------------
157+
158+
# on_rtd is whether we are on readthedocs.io
159+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
160+
161+
if not on_rtd: # only import and set the theme if we're building docs locally
162+
import sphinx_rtd_theme
163+
html_theme = 'sphinx_rtd_theme'
164+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
156165

0 commit comments

Comments
 (0)