|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69383 - sandbox/tools/auto_index/doc
From: pbristow_at_[hidden]
Date: 2011-02-28 09:10:06
Author: pbristow
Date: 2011-02-28 09:10:03 EST (Mon, 28 Feb 2011)
New Revision: 69383
URL: http://svn.boost.org/trac/boost/changeset/69383
Log:
Added index file and built indexes.
Binary files modified:
sandbox/tools/auto_index/doc/auto_index.pdf
Text files modified:
sandbox/tools/auto_index/doc/auto_index.qbk | 33 ++++++++++++++++++++++++---------
sandbox/tools/auto_index/doc/autoindex.idx | 4 +---
2 files changed, 25 insertions(+), 12 deletions(-)
Modified: sandbox/tools/auto_index/doc/auto_index.pdf
==============================================================================
Binary files. No diff available.
Modified: sandbox/tools/auto_index/doc/auto_index.qbk
==============================================================================
--- sandbox/tools/auto_index/doc/auto_index.qbk (original)
+++ sandbox/tools/auto_index/doc/auto_index.qbk 2011-02-28 09:10:03 EST (Mon, 28 Feb 2011)
@@ -15,8 +15,8 @@
[def __boostbook_docs [@http://www.boost.org/doc/libs/1_41_0/doc/html/boostbook.html BoostBook documentation]]
[def __quickbook_syntax [@http://www.boost.org/doc/libs/1_41_0/doc/html/quickbook/ref.html Quickbook Syntax Compendium]]
[def __docbook [@http://www.docbook.org/ DocBook]]
-[def __docbook_params [@http://docbook.sourceforge.net/release/xsl/current/doc/ Docbook xsl:param format options]
-[def __DOM [@http://en.wikipedia.org/wiki/Document_Object_Model Document Object Model]]
+[def __docbook_params [@http://docbook.sourceforge.net/release/xsl/current/doc/ Docbook xsl:param format options]]
+[def __DocObjMod [@http://en.wikipedia.org/wiki/Document_Object_Model Document Object Model (DOM)]]
[def __doxygen [@http://www.doxygen.org/ Doxygen]]
[def __autoindex [@boost:\tools\auto_index\doc\html\index.html AutoIndex]]
@@ -301,7 +301,10 @@
<auto-index-script>index.idx
... other auto-index options here...
- ;
+
+ \# And tell Quickbook that it should enable indexing.
+ <quickbook-define>enable_index
+ ;
}
else
{
@@ -309,7 +312,19 @@
}
] [/pre]
-To use this, you need to cd to your docs folder, for example:
+You will also need to add a conditional statement at the end of your Quickbook file,
+so that the index(es) is/are only added after the last section if indexing is enabled.
+
+[pre
+\[\? '''enable_index'''
+\'\'\'
+ <index/>
+\'\'\'
+\]
+] [/pre]
+
+
+To use this jamfile, you need to cd to your docs folder, for example:
cd \boost-sandbox\guild\mylibrary\libs\mylibrary\doc
@@ -383,7 +398,7 @@
In Quickbook, you add the same markup but enclose it between two triple-tick \'\'\' escapes,
thus
-[pre \'\'\'<index\/>\'\'\' ]
+[pre \'\'\'<index\/>\'\'\' ]
If you are writing a Quickbook document with Doxygen reference documentation,
the position of a `[xinclude autodoc.xml]` line in the Quickbook file
@@ -930,7 +945,7 @@
(If this comes from Quickbook\/Doxygen\/Boostbook\/Docbook then this is
the complete documentation after conversion to Docbook format).
-# AutoIndex builds an internal __DOM of the Docbook XML.
+# AutoIndex builds an internal __DocObjMod of the Docbook XML.
This internal representation then gets scanned for occurrences of the ['terms to index].
This scanning works at the XML paragraph level
(or equivalent sibling such as a table or code block)
@@ -940,15 +955,15 @@
(or code block etc).
# For each term found then an ['indexterm] Docbook element is inserted
- into the __DOM (provided internal index generation is off),
+ into the __DocObjMod (provided internal index generation is off),
# Also the AutoIndex's internal index representation gets updated.
# Once the whole XML document has been indexed,
then, if autoindex has been instructed to generate the index itself,
- it creates the necessary XML and inserts this into the __DOM.
+ it creates the necessary XML and inserts this into the __DocObjMod.
-# Finally the whole __DOM is written out as a new Docbook XML file,
+# Finally the whole __DocObjMod is written out as a new Docbook XML file,
and normal processing of this continues via the XSL stylesheets (with xsltproc)
to actually build the final human-readable docs.
Modified: sandbox/tools/auto_index/doc/autoindex.idx
==============================================================================
--- sandbox/tools/auto_index/doc/autoindex.idx (original)
+++ sandbox/tools/auto_index/doc/autoindex.idx 2011-02-28 09:10:03 EST (Mon, 28 Feb 2011)
@@ -8,9 +8,7 @@
# http://www.boost.org/LICENSE_1_0.txt)
# Diagnostic output - useful during refinement of the index.
-!debug regular-expression
-
-# No header or source files.
+# !debug your-choice-of-regular-expression-to-debug
# Terms that you want to appear in the Index.
# Term to display in index, and word(s) that are to be matched (as a regular expression).
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk