Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68451 - sandbox/tti/libs/tti/doc
From: eldiener_at_[hidden]
Date: 2011-01-25 20:44:30


Author: eldiener
Date: 2011-01-25 20:44:29 EST (Tue, 25 Jan 2011)
New Revision: 68451
URL: http://svn.boost.org/trac/boost/changeset/68451

Log:
Added auto-index and pdf support
Text files modified:
   sandbox/tti/libs/tti/doc/Jamfile.v2 | 50 ++++++++++++++++++++++++++++++++++++++-
   1 files changed, 48 insertions(+), 2 deletions(-)

Modified: sandbox/tti/libs/tti/doc/Jamfile.v2
==============================================================================
--- sandbox/tti/libs/tti/doc/Jamfile.v2 (original)
+++ sandbox/tti/libs/tti/doc/Jamfile.v2 2011-01-25 20:44:29 EST (Tue, 25 Jan 2011)
@@ -4,12 +4,35 @@
 # Edward Diener
 #
 
-project tti_doc ;
-
 using quickbook ;
 using doxygen ;
 
 path-constant here : . ; # convenient to refer to files in the same directory as this jamfile.v2
+path-constant boost-images : $(BOOST_ROOT)/doc/src/images ;
+
+import modules ;
+
+if --enable-index in [ modules.peek : ARGV ]
+{
+ ECHO "Building the tti docs with automatic index generation enabled." ;
+ using auto-index ;
+ project tti_doc : requirements
+ <auto-index>on
+ <auto-index-type>appendix
+ <auto-index-script>index.idx
+ <auto-index-prefix>../../../
+ <auto-index-verbose>on
+ <format>html:<auto-index-internal>on
+ <format>html:<xsl:param>generate.index=0
+ <format>pdf:<auto-index-internal>off
+ <format>pdf:<xsl:param>index.on.type=1
+ <quickbook-define>enable_index ;
+}
+else
+{
+ project tti_doc ;
+ ECHO "Building the tti docs with automatic index generation disabled. Try building with --enable-index." ;
+}
 
 doxygen TypeTraitsIntrospectionReference
   :
@@ -41,6 +64,29 @@
   <xsl:param>chunk.section.depth=8 # How far down we chunk nested sections, basically all of them.
   <xsl:param>toc.section.depth=8 # How far down sections get TOCs.
   <xsl:param>toc.max.depth=4 # Max depth in each TOC.
+
+ # PDF Options:
+ # TOC Generation: this is needed for FOP-0.9 and later:
+ <xsl:param>fop1.extensions=0
+ <xsl:param>xep.extensions=1
+ # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
+ <xsl:param>fop.extensions=0
+ # No indent on body text:
+ <xsl:param>body.start.indent=0pt
+ # Margin size:
+ <xsl:param>page.margin.inner=0.5in
+ # Margin size:
+ <xsl:param>page.margin.outer=0.5in
+ # Paper type = A4
+ <xsl:param>paper.type=A4
+ # Yes, we want graphics for admonishments:
+ <xsl:param>admon.graphics=1
+ # Set this one for PDF generation *only*:
+ # default pnd graphics are awful in PDF form,
+ # better use SVG's instead:
+ <format>pdf:<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.path=$(boost-images)/
+
   <dependency>css
   <dependency>images
   ;


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