8000 Improve API reference doc structure (#2635) · carshadi/zarr-python@ec014f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec014f6

Browse files
dstansbyjhamman
andauthored
Improve API reference doc structure (zarr-developers#2635)
Co-authored-by: Joe Hamman <joe@earthmover.io>
1 parent 617e2cd commit ec014f6

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

@@ -108,6 +108,7 @@ def skip_submodules(
108108
"release": "developers/release.html",
109109
"roadmap": "developers/roadmap.html",
110110
"installation": "user-guide/installation.html",
111+
"api": "api/zarr/index"
111112
}
112113

113114
# 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
@@ -10,7 +10,7 @@ Zarr-Python
1010

1111
quickstart
1212
user-guide/index
13-
api/index
13+
API reference <api/zarr/index>
1414
developers/index
1515
developers/release
1616
about
@@ -81,12 +81,12 @@ Zarr-Python is a Python library for reading and writing Zarr groups and arrays.
8181

8282
+++
8383

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

89-
To the API reference guide
89+
To the API reference
9090

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

0 commit comments

Comments
 (0)
0