Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/api/buffer.md

This file was deleted.

33 changes: 0 additions & 33 deletions docs/api/testing.md

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion docs/api/abc/codec.md → docs/api/zarr/abc/codec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ title: codec
---

::: zarr.abc.codec
::: zarr.abc.numcodec
7 changes: 7 additions & 0 deletions docs/api/zarr/abc/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Abstract base classes

- **[buffer](./buffer.md)** - Providing access to underlying memory via [buffers](https://docs.python.org/3/c-api/buffer.html)
- **[codec](./codec.md)** - Expressing [zarr codecs](https://zarr-specs.readthedocs.io/en/latest/v3/core/index.html#chunk-encoding)
- **[metadata](./metadata.md)** - Creating metadata classes compatible with the Zarr API
- **[numcodec](./numcodec.md)** - Protocols and classes for modeling codec interface used by numcodecs
- **[store](./store.md)** - ABC for implementing Zarr stores and managing getting and setting bytes in a store
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/api/zarr/abc/numcodec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: numcodec
---

::: zarr.abc.numcodec
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/api/zarr/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: API
---

Zarr provides both an [async](./asynchronous.md) and a [sync](./synchronous.md) API. See those pages for more details.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/api/zarr/buffer/cpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: zarr.buffer.cpu
1 change: 1 addition & 0 deletions docs/api/zarr/buffer/gpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: zarr.buffer.gpu
3 changes: 3 additions & 0 deletions docs/api/zarr/buffer/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Zarr provides buffer classes for both the [cpu](./cpu.md) and [gpu](./gpu.md). Generic buffer functionality is also detailed below.

::: zarr.buffer
2 changes: 0 additions & 2 deletions docs/api/codecs.md → docs/api/zarr/codecs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ title: codecs
---

::: zarr.codecs

::: zarr.codecs.numcodecs
5 changes: 5 additions & 0 deletions docs/api/zarr/codecs/numcodecs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: numcodecs
---

::: zarr.codecs.numcodecs
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions docs/api/index.md → docs/api/zarr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Complete reference documentation for the Zarr-Python API.

Zarr-Python provides both synchronous and asynchronous APIs:

- **[Async API](api_async.md)** - Asynchronous operations for concurrent access
- **[Sync API](api_sync.md)** - Synchronous operations for simple usage
- **[Async API](./api/asynchronous.md)** - Asynchronous operations for concurrent access
- **[Sync API](./api/synchronous.md)** - Synchronous operations for simple usage

## Abstract Base Classes

Expand All @@ -52,7 +52,7 @@ The ABC module defines interfaces for extending Zarr:
## Utilities

- **[Errors](errors.md)** - Exception classes and error handling
- **[Testing](testing.md)** - Utilities for testing Zarr-based code
- **[Testing](testing/index.md)** - Utilities for testing Zarr-based code


## Migration and Compatibility
Expand All @@ -64,7 +64,7 @@ These deprecated modules are maintained for backward compatibility but should be

## Getting Help

- Check the [User Guide](../user-guide/index.md) for tutorials and examples
- Check the [User Guide](../../user-guide/index.md) for tutorials and examples
- Browse function signatures and docstrings in the API reference
- Report issues on [GitHub](https://github.com/zarr-developers/zarr-python)
- Join discussions on the [Zarr community forum](https://github.com/zarr-developers/community)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/api/zarr/testing/buffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Buffer

::: zarr.testing.buffer
3 changes: 3 additions & 0 deletions docs/api/zarr/testing/conftest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Conftest

::: zarr.testing.conftest
12 changes: 12 additions & 0 deletions docs/api/zarr/testing/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: testing
---

See the following sub-modules:

- [buffer](./buffer.md)
- [conftest](./conftest.md)
- [stateful](./stateful.md)
- [store](./store.md)
- [strategies](./strategies.md)
- [utils](./utils.md)
3 changes: 3 additions & 0 deletions docs/api/zarr/testing/stateful.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Stateful

::: zarr.testing.stateful
4 changes: 4 additions & 0 deletions docs/api/zarr/testing/store.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

## Store

::: zarr.testing.store
4 changes: 4 additions & 0 deletions docs/api/zarr/testing/strategies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

## Strategies

::: zarr.testing.strategies
3 changes: 3 additions & 0 deletions docs/api/zarr/testing/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Utils

::: zarr.testing.utils
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ conda install --channel conda-forge zarr
A detailed guide for how to use Zarr-Python.


- [:material-api:{ .lg .middle } __API Reference__](api/open.md)
- [:material-api:{ .lg .middle } __API Reference__](api/zarr/open.md)

---

Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ columns (and so there will be 100 chunks in total). The data is written to a
and see [Data types](data_types.md) for an in-depth look at the data types supported
by Zarr.

See the [creation API documentation](../api/create.md) for more detailed information about
See the [creation API documentation](../api/zarr/create.md) for more detailed information about
creating arrays.

## Reading and writing data
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ z = root.create_array(name='foo/bar/baz', shape=(10000, 10000), chunks=(1000, 10
print(z)
```

For more information on groups see the [`zarr.Group` API docs](../api/group.md).
For more information on groups see the [`zarr.Group` API docs](../api/zarr/group.md).

## Batch Group Creation

You can also create multiple groups concurrently with a single function call. [`zarr.create_hierarchy`][] takes
a [`zarr Storage instance`](../api/storage.md) instance and a dict of `key : metadata` pairs, parses that dict, and
a [`zarr Storage instance`](../api/zarr/storage.md) instance and a dict of `key : metadata` pairs, parses that dict, and
writes metadata documents to storage:

```python exec="true" session="groups" source="above" result="ansi"
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ Take your skills to the next level:

## Need Help?

- Browse the [API Reference](../api/index.md) for detailed function documentation
- Browse the [API Reference](../api/zarr/index.md) for detailed function documentation
- Report issues on [GitHub](https://github.com/zarr-developers/zarr-python/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)
102 changes: 45 additions & 57 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,48 @@ nav:
- Examples:
- user-guide/examples/custom_dtype.md
- API Reference:
- api/index.md
- api/array.md
- api/group.md
- api/create.md
- api/dtype.md
- api/open.md
- api/load.md
- api/save.md
- api/buffer.md
- api/convenience.md
- api/config.md
- api/codecs.md
- api/errors.md
- api/metadata.md
- api/registry.md
- api/storage.md
- api/testing.md
- Async API: api/api_async.md
- Sync API: api/api_sync.md
- api/zarr/index.md
- api/zarr/array.md
- api/zarr/group.md
- api/zarr/create.md
- api/zarr/dtype.md
- api/zarr/load.md
- api/zarr/open.md
- api/zarr/save.md
- api/zarr/codecs.md
- api/zarr/codecs/numcodecs.md
- api/zarr/config.md
- api/zarr/convenience.md
- api/zarr/errors.md
- api/zarr/metadata.md
- api/zarr/registry.md
- api/zarr/storage.md
- ABC:
- api/abc/buffer.md
- api/abc/codec.md
- api/abc/metadata.md
- api/abc/store.md
- api/zarr/abc/index.md
- api/zarr/abc/buffer.md
- api/zarr/abc/codec.md
- api/zarr/abc/numcodec.md
- api/zarr/abc/metadata.md
- api/zarr/abc/store.md
- API:
- api/zarr/api/index.md
- api/zarr/api/asynchronous.md
- api/zarr/api/synchronous.md
- Buffer:
- api/zarr/buffer/index.md
- api/zarr/buffer/cpu.md
- api/zarr/buffer/gpu.md
- Testing:
- api/zarr/testing/index.md
- api/zarr/testing/buffer.md
- api/zarr/testing/conftest.md
- api/zarr/testing/stateful.md
- api/zarr/testing/store.md
- api/zarr/testing/strategies.md
- api/zarr/testing/utils.md
- deprecated:
- Convenience sub-module: api/deprecated/convenience.md
- Creation sub-module: api/deprecated/creation.md
- Convenience sub-module: api/zarr/deprecated/convenience.md
- Creation sub-module: api/zarr/deprecated/creation.md
- release-notes.md
- contributing.md
watch:
Expand Down Expand Up @@ -197,39 +212,12 @@ plugins:
'developers/contributing.html.md': 'contributing.md'
'developers/index.html.md': 'contributing.md'
'developers/roadmap.html.md': 'https://zarr.readthedocs.io/en/v3.0.8/developers/roadmap.html'
'api/zarr/index.html.md': 'api/index.md'
'api/zarr/abc/index.html.md': 'api/abc/buffer.md'
'api/zarr/abc/buffer/index.html.md': 'api/abc/buffer.md'
'api/zarr/abc/codec/index.html.md': 'api/abc/codec.md'
'api/zarr/abc/metadata/index.html.md': 'api/abc/metadata.md'
'api/zarr/abc/numcodec/index.html.md': 'api/abc/codec.md'
'api/zarr/abc/store/index.html.md': 'api/abc/store.md'
'api/zarr/api/index.html.md': 'api/index.md'
'api/zarr/api/asynchronous/index.html.md': 'api/api_async.md'
'api/zarr/api/synchronous/index.html.md': 'api/api_sync.md'
'api/zarr/buffer/index.html.md': 'api/buffer.md'
'api/zarr/buffer/cpu/index.html.md': 'api/buffer.md'
'api/zarr/buffer/gpu/index.html.md': 'api/buffer.md'
'api/zarr/codecs/index.html.md': 'api/codecs.md'
'api/zarr/codecs/numcodecs/index.html.md': 'api/codecs.md'
'api/zarr/convenience/index.html.md': 'api/convenience.md'
'api/zarr/creation/index.html.md': 'api/deprecated/creation.md'
'api/zarr/dtype/index.html.md': 'api/dtype.md'
'api/zarr/errors/index.html.md': 'api/errors.md'
'api/zarr/metadata/index.html.md': 'api/metadata.md'
'api/zarr/metadata/migrate_v3/index.html.md': 'api/metadata.md'
'api/zarr/registry/index.html.md': 'api/registry.md'
'api/zarr/storage/index.html.md': 'api/storage.md'
'api/zarr/testing/index.html.md': 'api/testing.md'
'api/zarr/testing/buffer/index.html.md': 'api/testing.md'
'api/zarr/testing/conftest/index.html.md': 'api/testing.md'
'api/zarr/testing/stateful/index.html.md': 'api/testing.md'
'api/zarr/testing/store/index.html.md': 'api/testing.md'
'api/zarr/testing/strategies/index.html.md': 'api/testing.md'
'api/zarr/testing/utils/index.html.md': 'api/testing.md'
'api/zarr/creation.md': 'api/zarr/deprecated/creation.md'
'api/zarr/codecs/numcodecs.md': 'api/zarr/deprecated/creation.md'
'api.md': 'api/zarr/index.md'
'api/zarr/metadata/migrate_v3.md': 'api/zarr/metadata.md'


# https://github.com/developmentseed/titiler/blob/50934c929cca2fa8d3c408d239015f8da429c6a8/docs/mkdocs.yml#L115-L140
# Based on https://github.com/developmentseed/titiler/blob/50934c929cca2fa8d3c408d239015f8da429c6a8/docs/mkdocs.yml#L115-L140
markdown_extensions:
- admonition
- attr_list
Expand Down