diff options
author | Brad King <brad.king@kitware.com> | 2023-07-13 16:12:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-07-13 16:16:39 (GMT) |
commit | 094c5a089da4a64245004d032bf8e9c5976b9b98 (patch) | |
tree | 2dabd19ee2c5b2abeba10df68bda4a7be2d27f54 /Utilities/Sphinx/cmake.py | |
parent | d769c59d783f0ffc46d61bb4715b5fb3a68181a8 (diff) | |
download | CMake-094c5a089da4a64245004d032bf8e9c5976b9b98.zip CMake-094c5a089da4a64245004d032bf8e9c5976b9b98.tar.gz CMake-094c5a089da4a64245004d032bf8e9c5976b9b98.tar.bz2 |
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
Diffstat (limited to 'Utilities/Sphinx/cmake.py')
-rw-r--r-- | Utilities/Sphinx/cmake.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |