Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Feb 6, 2025
1 parent d348117 commit 7f66b58
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,25 @@
html_title = "TileDB Python API Reference — TileDB-Py %s documentation" % version
html_logo = "_static/[email protected]"
html_favicon = "_static/favicon.ico"

html_theme = "sphinx_rtd_theme"
html_use_index = False

if not readthedocs: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_style = 'custom.css'
def setup(app):
try:
app.add_stylesheet('scipy-cookbook.css')
except AttributeError:
app.add_css_file('scipy-cookbook.css')
else:
html_context = {
'css_files': [
'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'_static/custom.css',
],
}

# -- Options for HTMLHelp output ---------------------------------------------

Expand Down Expand Up @@ -157,14 +174,14 @@

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

gensidebar.generate_sidebar(
{"on_rtd": readthedocs, "rtd_version": rtd_version}, "tiledb-py"
)
# gensidebar.generate_sidebar(
# {"on_rtd": readthedocs, "rtd_version": rtd_version}, "tiledb-py"
# )

# -- Custom setup -----------------------------------------------------------


def setup(app):
app.add_css_file("custom.css")
# def setup(app):
# app.add_css_file("custom.css")

0 comments on commit 7f66b58

Please sign in to comment.