Skip to content

Commit c746606

Browse files
committed
Improve API reference doc structure
1 parent 4fe104a commit c746606

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ coverage.xml
5151

5252
# Sphinx documentation
5353
docs/_build/
54-
docs/_autoapi
54+
docs/api
5555
docs/data
5656
data
5757
data.zip

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ help:
5252
.PHONY: clean
5353
clean:
5454
rm -rf $(BUILDDIR)/*
55-
rm -rf $(BUILDDIR)/../_autoapi
55+
rm -rf $(BUILDDIR)/../api
5656

5757
.PHONY: html
5858
html:

docs/api/index.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
autoapi_add_toctree_entry = False
5858
autoapi_generate_api_docs = True
5959
autoapi_member_order = "groupwise"
60-
autoapi_root = "_autoapi"
60+
autoapi_root = "api"
6161
autoapi_keep_files = True
6262
autoapi_options = [ 'members', 'undoc-members', 'show-inheritance', 'show-module-summary', 'imported-members', ]
6363

@@ -104,6 +104,7 @@ def skip_submodules(
104104
"spec/v3": "https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html",
105105
"license": "https://github.com/zarr-developers/zarr-python/blob/main/LICENSE.txt",
106106
"tutorial": "user-guide",
107+
"api": "api/zarr/index"
107108
}
108109

109110
# The language for content autogenerated by Sphinx. Refer to documentation

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Zarr-Python
1111
getting_started
1212
about
1313
user-guide/index
14-
api/index
14+
API Reference <api/zarr/index>
1515
release
1616
contributing
1717
roadmap
@@ -80,12 +80,12 @@ Zarr is a file storage format for chunked, compressed, N-dimensional arrays base
8080

8181
+++
8282

83-
.. button-ref:: api/index
83+
.. button-ref:: api/zarr/index
8484
:expand:
8585
:color: dark
8686
:click-parent:
8787

88-
To the api reference guide
88+
To the API reference
8989

9090
.. grid-item-card::
9191
:img-top: _static/index_contribute.svg

0 commit comments

Comments
 (0)