From 5cda220548b82010b9f2fc9f177e808b6151a162 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 17 Nov 2014 15:34:55 -0500 Subject: [PATCH] Utilities/Sphinx: Add missing call to note_explicit_target Sphinx calls document.note_explicit_target with any nodes.target() it creates. Add such a call when we create a document target in CMakeTransform. --- Utilities/Sphinx/cmake.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/Sphinx/cmake.py b/Utilities/Sphinx/cmake.py index ec39596b1..e20679a05 100644 --- a/Utilities/Sphinx/cmake.py +++ b/Utilities/Sphinx/cmake.py @@ -203,6 +203,7 @@ class CMakeTransform(Transform): # Insert the object link target. targetid = '%s:%s' % (objtype, title) targetnode = nodes.target('', '', ids=[targetid]) + self.document.note_explicit_target(targetnode) self.document.insert(0, targetnode) # Insert the object index entry. indexnode = addnodes.index()