From 094c5a089da4a64245004d032bf8e9c5976b9b98 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 13 Jul 2023 12:12:17 -0400 Subject: 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 --- Utilities/Sphinx/cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Sphinx/cmake.py b/Utilities/Sphinx/cmake.py index 60bfb33..66954df 100644 --- a/Utilities/Sphinx/cmake.py +++ b/Utilities/Sphinx/cmake.py @@ -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): -- cgit v0.12