Skip to content

Commit

Permalink
redirect parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Oct 10, 2024
1 parent 8bfa618 commit e7add5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
"sphinx.ext.mathjax",
"IPython.sphinxext.ipython_console_highlighting",
"sphinxext.opengraph",
"scanpydoc.elegant_typehints",
"scanpydoc.definition_list_typed_field",
*[p.stem for p in (HERE / "extensions").glob("*.py")],
]

Expand Down Expand Up @@ -140,10 +142,14 @@
nitpick_ignore = [
# https://github.com/duckdb/duckdb-web/issues/3806
("py:class", "duckdb.duckdb.DuckDBPyConnection"),
# zarr doesn’t document its base Store class
("py:class", "zarr._storage.store.Store"),
]

# Redirect broken parameter annotation classes
qualname_overrides = {
"zarr._storage.store.Store": "zarr.storage.MemoryStore",
"lnschema_core.models.Artifact": "lamindb.Artifact",
}


def setup(app: Sphinx) -> None:
"""Setup lamindb for CI."""
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ optional-dependencies.doc = [
"ipython",
"myst-nb>=1.1",
"pandas",
"scanpydoc",
# Until pybtex >0.23.0 releases: https://bitbucket.org/pybtex-devs/pybtex/issues/169/
"setuptools",
"sphinx>=4",
Expand Down

0 comments on commit e7add5e

Please sign in to comment.