Skip to content

Commit e798ea2

Browse files
drvinceknightmarcharper
authored andcommitted
Change sphinx theme.
This uses the rtd theme to be in line with the rest of the documentation.
1 parent 85bc17d commit e798ea2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,13 @@
8282

8383
# The theme to use for HTML and HTML Help pages. See the documentation for
8484
# a list of builtin themes.
85-
#
86-
html_theme = 'alabaster'
85+
import os
86+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
87+
88+
if not on_rtd: # only import and set the theme if we're building docs locally
89+
import sphinx_rtd_theme
90+
html_theme = 'sphinx_rtd_theme'
91+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
8792

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

0 commit comments

Comments
 (0)