diff --git a/docs/cudf/source/conf.py b/docs/cudf/source/conf.py index 035ee586822..0100c331e72 100644 --- a/docs/cudf/source/conf.py +++ b/docs/cudf/source/conf.py @@ -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