Skip to content

Commit

Permalink
api: hide zarr.core from api docs (zarr-developers#2669)
Browse files Browse the repository at this point in the history
* api: hide zarr.core from api docs

* dont link to zarr.config doc module
  • Loading branch information
jhamman authored Jan 8, 2025
1 parent 0c1aad5 commit bc26199
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def skip_submodules(
) -> bool:
# Skip documenting zarr.codecs submodules
# codecs are documented in the main zarr.codecs namespace
if what == "module" and name.startswith("zarr.codecs."):
if what == "module" and name.startswith("zarr.codecs.") or name.startswith("zarr.core"):
skip = True
return skip

Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Runtime configuration
=====================

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

Configuration values can be set using code like the following::
Expand Down
5 changes: 5 additions & 0 deletions src/zarr/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
The ``zarr.core`` module is considered private API and should not be imported
directly by 3rd-party code.
"""

from __future__ import annotations

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

0 comments on commit bc26199

Please sign in to comment.