Utilities/Sphinx: Restore html search index link anchors

Since commit 37e015d4a6 (Utilities/Sphinx: Refactor Sphinx reference
recording, 2023-03-08, v3.27.0-rc1~342^2~1), anchors in links to cmake
domain objects generated in html search results were missing their
object type prefix, and thus did not link to the object.

Restore our `get_objects` implementation's second tuple entry to what we
used prior to that commit.  This matches what Sphinx's builtin python,
rst, and javascript modes do.

Fixes: #25067
This commit is contained in:
Brad King 2023-07-13 12:12:17 -04:00
parent d769c59d78
commit 094c5a089d

View File

@ -737,7 +737,7 @@ class CMakeDomain(Domain):
def get_objects(self):
for refname, obj in self.data['objects'].items():
yield (refname, obj.name, obj.objtype, obj.docname, obj.node_id, 1)
yield (refname, refname, obj.objtype, obj.docname, obj.node_id, 1)
def setup(app):