Skip to content

api: hide zarr.core from api docs #2669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 8, 2025
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
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
Loading