Skip to content

Commit b2516dc

Browse files
authored
Fix theme on RTD (#143)
Always set `html_theme` to `sphinx_rtd_theme`, regardless of the environment. Signed-off-by: Heitor Pascoal de Bittencourt <heitorpbittencourt@gmail.com>
1 parent e8d1cf4 commit b2516dc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

source/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
#
4-
import os
54
import datetime
65
# import sys
76
# sys.path.insert(0, os.path.abspath('.'))
@@ -84,13 +83,10 @@
8483

8584
# -- Options for HTML output ----------------------------------------------
8685

87-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
88-
8986
# The theme to use for HTML and HTML Help pages. See the documentation for
9087
# a list of builtin themes.
9188
#
92-
if not on_rtd:
93-
html_theme = 'sphinx_rtd_theme'
89+
html_theme = 'sphinx_rtd_theme'
9490

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

0 commit comments

Comments
 (0)