Skip to content

Commit 0c7e832

Browse files
committed
Merge pull request #30 from Axelrod-Python/29
Changing theme.
2 parents 3b42c8f + 5289a25 commit 0c7e832

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
@@ -111,7 +111,12 @@
111111

112112
# The theme to use for HTML and HTML Help pages. See the documentation for
113113
# a list of builtin themes.
114-
html_theme = 'alabaster'
114+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
115+
116+
if not on_rtd: # only import and set the theme if we're building docs locally
117+
import sphinx_rtd_theme
118+
html_theme = 'sphinx_rtd_theme'
119+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115120

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

0 commit comments

Comments
 (0)