Skip to content

Commit b6cf8d9

Browse files
committed
Test
1 parent d348117 commit b6cf8d9

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

Diff for: doc/source/conf.py

+23-6
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,25 @@
9595
html_title = "TileDB Python API Reference — TileDB-Py %s documentation" % version
9696
html_logo = "_static/[email protected]"
9797
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+
}
100117

101118
# -- Options for HTMLHelp output ---------------------------------------------
102119

@@ -157,11 +174,11 @@
157174

158175
# Generate the sidebar automatically so that it is identical across all subprojects.
159176
# This (and gensidebar.py) from https://github.com/robotpy/robotpy-docs
160-
import gensidebar
177+
# import gensidebar
161178

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+
# )
165182

166183
# -- Custom setup -----------------------------------------------------------
167184

0 commit comments

Comments
 (0)