summaryrefslogtreecommitdiff
path: root/Utilities/Sphinx/create_identifiers.py
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-11 17:19:26 -0500
committerBrad King <brad.king@kitware.com>2014-11-12 09:10:52 -0500
commit7ca9a459eb51ab110680d8221ddefeb0ffc6e95f (patch)
tree19521d720bf6503e028391172b1daec9bcadf9eb /Utilities/Sphinx/create_identifiers.py
parent54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff)
downloadcmake-7ca9a459eb51ab110680d8221ddefeb0ffc6e95f.tar.gz
Utilities/Sphinx: Add index entries for cross-references
Add a document transform to insert index and target nodes just before any CMake domain cross-reference node. This will make references to CMake domain objects appear in the index. Also add a comment explaining why it cannot be done in a result_nodes method of the CMakeXRefRole.
Diffstat (limited to 'Utilities/Sphinx/create_identifiers.py')
-rwxr-xr-xUtilities/Sphinx/create_identifiers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Sphinx/create_identifiers.py b/Utilities/Sphinx/create_identifiers.py
index 7715e534ae..3fe3fcbe52 100755
--- a/Utilities/Sphinx/create_identifiers.py
+++ b/Utilities/Sphinx/create_identifiers.py
@@ -34,7 +34,7 @@ for line in lines:
for domain_object_string, domain_object_type in mapping:
if "<keyword name=\"" + domain_object_string + "\"" in line:
- if not "id=\"" in line:
+ if not "id=\"" in line and not "#index-" in line:
prefix = "<keyword name=\"" + domain_object_string + "\" "
part1, part2 = line.split(prefix)
head, tail = part2.split("#" + domain_object_type + ":")