1- #!/usr/bin/env python3
2- #
31# zarr documentation build configuration file, created by
42# sphinx-quickstart on Mon May 2 21:40:09 2016.
53#
4038 "sphinx.ext.autosummary" ,
4139 "sphinx.ext.viewcode" ,
4240 "sphinx.ext.intersphinx" ,
43- ' autoapi.extension' ,
44- "numpydoc " ,
41+ " autoapi.extension" ,
42+ "sphinx.ext.napoleon " ,
4543 "sphinx_issues" ,
46- "sphinx_copybutton" ,
4744 "sphinx_design" ,
4845 "sphinx_immaterial" ,
49- 'sphinx_reredirects' ,
46+ "sphinx_immaterial.apidoc.format_signatures" ,
47+ "sphinx_reredirects" ,
5048]
5149
5250issues_github_path = "zarr-developers/zarr-python"
@@ -167,8 +165,24 @@ def skip_submodules(
167165# further. For a list of options available for each theme, see the
168166# documentation.
169167html_theme_options = {
170- # "github_url": "https://github.com/zarr-developers/zarr-python",
171- # "twitter_url": "https://twitter.com/zarr_dev",
168+ "repo_url" : "https://github.com/zarr-developers/zarr-python" ,
169+ "social" : [
170+ {
171+ "icon" : "fontawesome/brands/twitter" ,
172+ "link" : "https://twitter.com/zarr_dev" ,
173+ "name" : "@zarr_dev on Twitter" ,
174+ },
175+ {
176+ "icon" : "simple/zulip" ,
177+ "link" : "https://ossci.zulipchat.com/" ,
178+ "name" : "Developer chat" ,
179+ },
180+ {
181+ "icon" : "fontawesome/brands/github" ,
182+ "link" : "https://github.com/zarr-developers/zarr-python/" ,
183+ "name" : "Source repository" ,
184+ },
185+ ],
172186 # "icon_links": [
173187 # {
174188 # "name": "Zarr Dev",
@@ -179,7 +193,46 @@ def skip_submodules(
179193 # ],
180194 # "collapse_navigation": True,
181195 "navigation_with_keys" : False ,
182- # "announcement": "Zarr-Python 3 is here! Check out the release announcement <a href='https://zarr.dev/blog/zarr-python-3-release/'>here.</a>",
196+ "features" : [
197+ "navigation.expand" ,
198+ "navigation.tabs" ,
199+ "navigation.tabs.sticky" ,
200+ "navigation.top" ,
201+ "toc.sticky" ,
202+ "toc.follow" ,
203+ "announce.dismiss" ,
204+ "content.action.view" ,
205+ "navigation.footer" ,
206+ ],
207+ "palette" : [
208+ {
209+ "media" : "(prefers-color-scheme)" ,
210+ "toggle" : {
211+ "icon" : "material/brightness-auto" ,
212+ "name" : "Switch to light mode" ,
213+ },
214+ },
215+ {
216+ "media" : "(prefers-color-scheme: light)" ,
217+ "scheme" : "default" ,
218+ "primary" : "indigo" ,
219+ "accent" : "indigo" ,
220+ "toggle" : {
221+ "icon" : "material/lightbulb" ,
222+ "name" : "Switch to dark mode" ,
223+ },
224+ },
225+ {
226+ "media" : "(prefers-color-scheme: dark)" ,
227+ "scheme" : "slate" ,
228+ "primary" : "black" ,
229+ "accent" : "blue" ,
230+ "toggle" : {
231+ "icon" : "material/lightbulb-outline" ,
232+ "name" : "Switch to system preference" ,
233+ },
234+ },
235+ ],
183236}
184237
185238# Add any paths that contain custom themes here, relative to this directory.
@@ -280,7 +333,10 @@ def setup(app: sphinx.application.Sphinx) -> None:
280333# Output file base name for HTML help builder.
281334htmlhelp_basename = "zarrdoc"
282335
283- maximum_signature_line_length = 80
336+ object_description_options = [
337+ ("py:.*" , dict (black_format_style = {}, include_fields_in_toc = False )),
338+ ("py:(parameter|typeParameter)" , dict (include_in_toc = False )),
339+ ]
284340
285341# -- Options for LaTeX output ---------------------------------------------
286342
0 commit comments