docs: fix api ref mod links in pkg page (#25447)

This commit is contained in:
Bagatur
2024-08-15 09:52:12 -07:00
committed by GitHub
parent 2ef9d12372
commit 60b65528c5

View File

@@ -281,7 +281,7 @@ def _construct_doc(
module_doc = f"""\
.. currentmodule:: {package_namespace}
.. _{module}:
.. _{package_namespace}_{module}:
"""
_members = members_by_namespace[module]
classes = [
@@ -317,7 +317,7 @@ def _construct_doc(
"""
index_autosummary += f"""
:ref:`{module}`
:ref:`{package_namespace}_{module}`
{'^' * (len(module) + 5)}
"""