File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 57
57
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
58
58
on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
59
59
60
- if not on_rtd : # only import and set the theme if we're building docs locally
60
+ html_theme = 'sphinx_rtd_theme'
61
+ # only import the theme if we're building docs locally
62
+ if on_rtd :
63
+ html_style = None
64
+ using_rtd_theme = True
65
+ else :
61
66
import sphinx_rtd_theme
62
- html_theme = 'sphinx_rtd_theme'
63
67
html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
64
68
65
69
# The name for this set of Sphinx documents. If None, it defaults to
84
88
html_theme_options = {
85
89
'collapse_navigation' : False ,
86
90
}
87
- if on_rtd : # only import and set the theme if we're building docs locally
88
- html_theme = 'sphinx_rtd_theme'
89
- html_style = None
90
- using_rtd_theme = True
91
91
92
92
93
93
# If true, an OpenSearch description file will be output, and all pages will
You can’t perform that action at this time.
0 commit comments