Skip to content

Commit

Permalink
Fix including zarr.codecs._v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed May 28, 2024
1 parent 7cd3b56 commit f649442
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@
autoapi_dirs = ['../src/zarr']
autoapi_add_toctree_entry = False
autoapi_root = "api"
autoapi_ignore = ["*v2*"]
autoapi_ignore = ["*zarr/v2*"]

def skip_private_modules(app, what: str, name: str, obj, skip: bool, options) -> bool:
if "._" in name:
# TODO: remove this clause when zarr.codecs._v2 is removed
if name == "zarr.codecs._v2":
return False
elif "._" in name:
return True
return False

Expand Down

0 comments on commit f649442

Please sign in to comment.