Skip to content

Commit 4932ab3

Browse files
committed
Merge branch 'docs/3.0-quickstart' of https://github.com/zarr-developers/zarr-python into docs/3.0-quickstart
2 parents 1bf3306 + 8440aca commit 4932ab3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3937
-2040
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,38 @@ jobs:
9494
run: |
9595
hatch env run --env ${{ matrix.dependency-set }} run
9696
97+
doctests:
98+
name: doctests
99+
runs-on: ubuntu-latest
100+
steps:
101+
- uses: actions/checkout@v4
102+
with:
103+
fetch-depth: 0 # required for hatch version discovery, which is needed for numcodecs.zarr3
104+
- name: Set up Python
105+
uses: actions/setup-python@v5
106+
with:
107+
python-version: '3.13'
108+
cache: 'pip'
109+
- name: Install Hatch
110+
run: |
111+
python -m pip install --upgrade pip
112+
pip install hatch
113+
- name: Set Up Hatch Env
114+
run: |
115+
hatch env create doctest
116+
hatch env run -e doctest list-env
117+
- name: Run Tests
118+
run: |
119+
hatch env run --env doctest run
120+
97121
test-complete:
98122
name: Test complete
99123

100124
needs:
101125
[
102126
test,
103127
test-upstream-and-min-deps,
128+
doctests
104129
]
105130
if: always()
106131
runs-on: ubuntu-latest
@@ -111,4 +136,4 @@ jobs:
111136
contains(needs.*.result, 'cancelled')
112137
run: exit 1
113138
- name: Success
114-
run: echo Success!
139+
run: echo Success!

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ docs/_build/
5454
docs/_autoapi
5555
docs/data
5656
data
57+
data.zip
5758

5859
# PyBuilder
5960
target/

docs/about.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
About
2+
=====
3+
4+
Zarr is a format for the storage of chunked, compressed, N-dimensional arrays
5+
inspired by `HDF5 <https://www.hdfgroup.org/HDF5/>`_, `h5py
6+
<https://www.h5py.org/>`_ and `bcolz <https://bcolz.readthedocs.io/>`_.
7+
8+
These documents describe the Zarr-Python implementation. More information
9+
about the Zarr format can be found on the `main website <https://zarr.dev>`_.
10+
11+
Projects using Zarr
12+
-------------------
13+
14+
If you are using Zarr-Python, we would `love to hear about it
15+
<https://github.com/zarr-developers/community/issues/19>`_.
16+
17+
Funding
18+
-------
19+
The project is fiscally sponsored by `NumFOCUS <https://numfocus.org/>`_, a US
20+
501(c)(3) public charity, and development is supported by the
21+
`MRC Centre for Genomics and Global Health <https://www.cggh.org>`_
22+
and the `Chan Zuckerberg Initiative <https://chanzuckerberg.com/>`_.
23+
24+
.. _NumCodecs: https://numcodecs.readthedocs.io/

docs/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import sys
1818
from typing import Any
1919

20+
import sphinx
2021
import sphinx.application
2122

2223
from importlib.metadata import version as get_version
@@ -62,6 +63,20 @@
6263
autoapi_keep_files = True
6364
autoapi_options = [ 'members', 'undoc-members', 'show-inheritance', 'show-module-summary', 'imported-members', ]
6465

66+
def skip_submodules(
67+
app: sphinx.application.Sphinx,
68+
what: str,
69+
name: str,
70+
obj: object,
71+
skip: bool,
72+
options: dict[str, Any]
73+
) -> bool:
74+
# Skip documenting zarr.codecs submodules
75+
# codecs are documented in the main zarr.codecs namespace
76+
if what == "module" and name.startswith("zarr.codecs."):
77+
skip = True
78+
return skip
79+
6580
# Add any paths that contain templates here, relative to this directory.
6681
templates_path = ["_templates"]
6782

@@ -182,6 +197,7 @@
182197

183198
def setup(app: sphinx.application.Sphinx) -> None:
184199
app.add_css_file("custom.css")
200+
app.connect("autoapi-skip-member", skip_submodules)
185201

186202

187203
# The name of an image file (relative to this directory) to use as a favicon of

docs/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Zarr-Python
99
:hidden:
1010

1111
quickstart
12+
about
1213
user-guide/index
1314
api/index
1415
release
@@ -55,17 +56,16 @@ Zarr is a file storage format for chunked, compressed, N-dimensional arrays base
5556
Guide
5657
^^^^^
5758

58-
The user guide provides a detailed guide for how to use Zarr-Python.
59+
A detailed guide for how to use Zarr-Python.
5960

6061
+++
6162

62-
.. button-ref:: user-guide
63-
:ref-type: ref
63+
.. button-ref:: user-guide/index
6464
:expand:
6565
:color: dark
6666
:click-parent:
6767

68-
To the User Guide
68+
To the user guide
6969

7070
.. grid-item-card::
7171
:img-top: _static/index_api.svg

0 commit comments

Comments
 (0)