File tree 1 file changed +23
-6
lines changed
1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 95
95
html_title = "TileDB Python API Reference — TileDB-Py %s documentation" % version
96
96
html_logo = "_static/[email protected] "
97
97
html_favicon = "_static/favicon.ico"
98
-
99
- html_theme = "sphinx_rtd_theme"
98
+ html_use_index = False
99
+
100
+ if not readthedocs : # only import and set the theme if we're building docs locally
101
+ import sphinx_rtd_theme
102
+ html_theme = 'sphinx_rtd_theme'
103
+ html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
104
+ def setup (app ):
105
+ try :
106
+ app .add_stylesheet ('scipy-cookbook.css' )
107
+ except AttributeError :
108
+ app .add_css_file ('scipy-cookbook.css' )
109
+ else :
110
+ html_context = {
111
+ 'css_files' : [
112
+ 'https://media.readthedocs.org/css/sphinx_rtd_theme.css' ,
113
+ 'https://media.readthedocs.org/css/readthedocs-doc-embed.css' ,
114
+ '_static/scipy-cookbook.css' ,
115
+ ],
116
+ }
100
117
101
118
# -- Options for HTMLHelp output ---------------------------------------------
102
119
157
174
158
175
# Generate the sidebar automatically so that it is identical across all subprojects.
159
176
# This (and gensidebar.py) from https://github.com/robotpy/robotpy-docs
160
- import gensidebar
177
+ # import gensidebar
161
178
162
- gensidebar .generate_sidebar (
163
- {"on_rtd" : readthedocs , "rtd_version" : rtd_version }, "tiledb-py"
164
- )
179
+ # gensidebar.generate_sidebar(
180
+ # {"on_rtd": readthedocs, "rtd_version": rtd_version}, "tiledb-py"
181
+ # )
165
182
166
183
# -- Custom setup -----------------------------------------------------------
167
184
You can’t perform that action at this time.
0 commit comments