Skip to content

Commit 1a102ac

Browse files
committed
Copy
1 parent 67550e5 commit 1a102ac

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

doc/source/conf.py

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@
4444
"sphinx.ext.autodoc",
4545
"sphinx.ext.doctest",
4646
"sphinx.ext.intersphinx",
47-
"sphinxcontrib.jquery",
47+
"sphinx.ext.napoleon",
4848
"sphinx.ext.autosummary",
49-
"sphinx.ext.viewcode",
49+
"nbsphinx",
50+
"sphinxcontrib.jquery",
5051
]
5152

53+
autosummary_generate = True
54+
5255
# Mapping for linking between RTD subprojects.
5356
if readthedocs:
5457
intersphinx_mapping = {
@@ -67,6 +70,8 @@
6770
),
6871
}
6972

73+
napoleon_custom_sections = ["Lifecycle"]
74+
7075
# Add any paths that contain templates here, relative to this directory.
7176
templates_path = ["_templates"]
7277

@@ -79,30 +84,40 @@
7984
# The master toctree document.
8085
master_doc = "index"
8186

87+
# The language for content autogenerated by Sphinx. Refer to documentation
88+
# for a list of supported languages.
89+
#
90+
# This is also used if you do content translation via gettext catalogs.
91+
# Usually you set "language" from the command line for these cases.
92+
language = "en"
93+
8294
# List of patterns, relative to source directory, that match files and
8395
# directories to ignore when looking for source files.
8496
# This pattern also affects html_static_path and html_extra_path .
8597
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
8698

8799
# The name of the Pygments (syntax highlighting) style to use.
88-
pygments_style = "sphinx"
100+
pygments_style = "friendly"
89101

90102

91103
# -- Options for HTML output -------------------------------------------------
92104

93105
html_static_path = ["_static"]
94-
html_title = "TileDB Python API Reference — TileDB-Py %s documentation" % version
95106
html_logo = "_static/[email protected]"
96107
html_favicon = "_static/favicon.ico"
97-
html_use_index = False
98108

99-
if not readthedocs: # only import and set the theme if we're building docs locally
100-
import sphinx_rtd_theme
109+
# if readthedocs:
110+
# html_theme = "default"
111+
# else:
112+
# import sphinx_rtd_theme
113+
#
114+
# html_theme = "sphinx_rtd_theme"
115+
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
116+
117+
import sphinx_rtd_theme
101118

102-
html_theme = "sphinx_rtd_theme"
103-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
104-
else:
105-
html_theme = "default"
119+
html_theme = "sphinx_rtd_theme"
120+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
106121

107122
# -- Options for HTMLHelp output ---------------------------------------------
108123

doc/source/gensidebar.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
#
2-
# This file generates the sidebar/toctree for all TileDB projects and should
2+
# This file generates the sidebar/toctree for all TileDB-SOMA projects and should
33
# be copied to each project when it is updated.
44
#
55
# This file is originally from the RobotPy documentation project
66
# https://github.com/robotpy/robotpy-docs, licensed under Apache v2.
77
#
88

9-
import os
10-
119

1210
def write_if_changed(fname, contents):
1311

1412
try:
1513
with open(fname, "r") as fp:
1614
old_contents = fp.read()
17-
except:
15+
except Exception:
1816
old_contents = ""
1917

2018
if old_contents != contents:

0 commit comments

Comments
 (0)