File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
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
81
85
"conf_py_path" : "doc/" ,
82
86
"source_suffix" : '.rst' ,
83
87
}
88
+ html_theme_options = {
89
+ 'collapse_navigation' : False ,
90
+ }
84
91
85
92
86
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