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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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