diff --git a/doc/auto_index.qbk b/doc/auto_index.qbk index 4b98308..e91d54a 100644 --- a/doc/auto_index.qbk +++ b/doc/auto_index.qbk @@ -370,6 +370,9 @@ the documentation and see: Further rules can then be added to the script to handle these cases and the next iteration examined, and so on. +[tip If you don't understand why a particular term is present in the index, try adding a ['!debug regular-expression] +directive to the [link autoindex.script_ref script file].] + [endsect] [section:script_ref Script File Reference] @@ -525,6 +528,27 @@ The arguments to the set-regex rule as follows: [[suffix][The suffix regular expression, or "" to reset to the default.]] ] +[h4 Debugging] + +If you see a term in the index, and you don't understand why it's there, add a ['debug] directive: + +[pre +!debug regular-expression +] + +Now, whenever ['regular-expression] matches either the found index term, or the section title it appears in, then +some diagnostic information will be printed that will look something like: + +[pre +Debug term found, in block with ID: spirit.qi.reference.parser_concepts.parser +Current section title is: Notation +The main index entry will be : Notation +The indexed term is: parser +The search regex is: \[P\|p\]arser +The section constraint is: .*qi.reference.parser_concepts.* +The index type for this entry is: qi_index +] + [endsect] [section:comm_ref Command Line Reference] diff --git a/doc/html/autoindex/comm_ref.html b/doc/html/autoindex/comm_ref.html index 5fd65a2..7cffab5 100644 --- a/doc/html/autoindex/comm_ref.html +++ b/doc/html/autoindex/comm_ref.html @@ -16,7 +16,7 @@
The following command line options are supported by auto_index: diff --git a/doc/html/autoindex/overview.html b/doc/html/autoindex/overview.html index e3c69ad..1eb12d0 100644 --- a/doc/html/autoindex/overview.html +++ b/doc/html/autoindex/overview.html @@ -17,7 +17,7 @@
AutoIndex is a tool for taking the grunt work out of indexing a Quickbook/Boostbook/Docbook diff --git a/doc/html/autoindex/script_ref.html b/doc/html/autoindex/script_ref.html index ba1b659..47613d3 100644 --- a/doc/html/autoindex/script_ref.html +++ b/doc/html/autoindex/script_ref.html @@ -17,13 +17,13 @@
The following elements can occur in a script:
term [regular-expression1 [regular-expression2 [category]]] @@ -99,7 +99,7 @@
!scan source-file-name @@ -128,7 +128,7 @@- + Directory and Source File Scanning
@@ -157,7 +157,7 @@- + Excluding Terms
!exclude term-list @@ -170,7 +170,7 @@ of things to index.- + Rewriting Section Names
@@ -208,7 +208,7 @@- + Changing the regular expressions used when scanning
@@ -348,6 +348,29 @@ ++ + Debugging +
++ If you see a term in the index, and you don't understand why it's there, add + a debug directive: +
+!debug regular-expression +++ Now, whenever regular-expression matches either the found + index term, or the section title it appears in, then some diagnostic information + will be printed that will look something like: +
+Debug term found, in block with ID: spirit.qi.reference.parser_concepts.parser +Current section title is: Notation +The main index entry will be : Notation +The indexed term is: parser +The search regex is: [P|p]arser +The section constraint is: .qi.reference.parser_concepts. +The index type for this entry is: qi_index +
diff --git a/doc/html/autoindex/tut.html b/doc/html/autoindex/tut.html index 208fb76..7748248 100644 --- a/doc/html/autoindex/tut.html +++ b/doc/html/autoindex/tut.html @@ -17,10 +17,10 @@ |
![]() |
+Tip | +
---|---|
+ If you don't understand why a particular term is present in the index, try + adding a !debug regular-expression directive to the + script file. + |
diff --git a/doc/html/index.html b/doc/html/index.html index 1df96a2..836bb5a 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -21,7 +21,7 @@ |
Last revised: June 28, 2010 at 17:45:04 GMT |
+Last revised: December 20, 2010 at 13:16:00 GMT |