@@ -15,6 +15,9 @@
18+# True if the readthedocs theme is locally installed
19+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
18# If extensions (or modules to document with autodoc) are in another directory,
21# If extensions (or modules to document with autodoc) are in another directory,
19# add these directories to sys.path here. If the directory is relative to the
22# add these directories to sys.path here. If the directory is relative to the
20# documentation root, use os.path.abspath to make it absolute, like shown here.
23# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -111,6 +114,13 @@ todo_include_todos = True
111# a list of builtin themes.
114# a list of builtin themes.
112html_theme = "default"
115html_theme = "default"
117+if not on_rtd: # only import and set the theme if we're building docs locally
118+ import sphinx_rtd_theme
119+ html_theme = 'sphinx_rtd_theme'
120+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
114# Theme options are theme-specific and customize the look and feel of a theme
124# Theme options are theme-specific and customize the look and feel of a theme
115# further. For a list of options available for each theme, see the
125# further. For a list of options available for each theme, see the
116# documentation.
126# documentation.