Skip to content

Commit bc26199

Browse files
authored
api: hide zarr.core from api docs (#2669)
* api: hide zarr.core from api docs * dont link to zarr.config doc module
1 parent 0c1aad5 commit bc26199

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def skip_submodules(
7171
) -> bool:
7272
# Skip documenting zarr.codecs submodules
7373
# codecs are documented in the main zarr.codecs namespace
74-
if what == "module" and name.startswith("zarr.codecs."):
74+
if what == "module" and name.startswith("zarr.codecs.") or name.startswith("zarr.core"):
7575
skip = True
7676
return skip
7777

docs/user-guide/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Runtime configuration
44
=====================
55

6-
:mod:`zarr.config <zarr.core.config>` is responsible for managing the configuration of zarr and
6+
``zarr.config`` is responsible for managing the configuration of zarr and
77
is based on the `donfig <https://github.com/pytroll/donfig>`_ Python library.
88

99
Configuration values can be set using code like the following::

src/zarr/core/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
The ``zarr.core`` module is considered private API and should not be imported
3+
directly by 3rd-party code.
4+
"""
5+
16
from __future__ import annotations
27

38
from zarr.core.buffer import Buffer, NDBuffer # noqa: F401

0 commit comments

Comments
 (0)