Skip to content

Commit

Permalink
Add back reftarget change for cudf.Index
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Jan 30, 2024
1 parent 6d07cc2 commit 71d87d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/cudf/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@ def on_missing_reference(app, env, node, contnode):
_prefixed_domain_objects[f"{prefix}{name}"] = name

reftarget = node.get("reftarget")
if reftarget == "cudf.core.index.Index":
# We don't exposed docs for `cudf.core.index.Index`
# hence we would want the docstring & mypy references to
# use `cudf.Index`
node["reftarget"] = "cudf.Index"
return contnode
if "namespacecudf" in reftarget:
node["reftarget"] = "cudf"
return contnode
Expand Down

0 comments on commit 71d87d5

Please sign in to comment.