From 7c7018ecc7fc46a3bb44ac6f649d6ca994a7101d Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sun, 18 Jul 2010 14:42:03 +0000 Subject: [PATCH] Moving copy of indexer stuff to index target. Adding support for copying doc images to the output directory based on properties set in build.properties. --- xsl/webhelp/build.properties | 28 +++++++++++----- xsl/webhelp/build.xml | 62 +++++++++++++++++++----------------- 2 files changed, 53 insertions(+), 37 deletions(-) diff --git a/xsl/webhelp/build.properties b/xsl/webhelp/build.properties index 1acbf6eed..eb4a63a86 100755 --- a/xsl/webhelp/build.properties +++ b/xsl/webhelp/build.properties @@ -1,8 +1,16 @@ input-xml=docsrc/readme.xml +output-dir=doc stylesheet-path=xsl/webhelp.xsl -# Output directory -base-dir=doc +# If your document has image directories that need to be copied +# to the output directory, you can list patterns here. +# See the Ant documentation for fileset for documentation +# on patterns. +#input-images-dirs=images/** figures/** graphics/** +# By default, the ant script assumes your images are stored +# in the same directory as the input-xml. If you store your +# image directories in another directory, specify it here. +#input-images-basedir=/path/to/image/location # Modify this so that it points to your copy of the Saxon 6.5 jar. xslt-processor-classpath=c:/workhead/export/saxon/6.5/lib/saxon.jar @@ -11,20 +19,24 @@ xslt-processor-classpath=c:/workhead/export/saxon/6.5/lib/saxon.jar # Download xml-commons-resolver from http://xml.apache.org/commons/dist/ # and add it to your CLASSPATH. Then use the following property to point # to your docbook xsl stylesheets' catalog -docbook-xsl-catalog=/media/DATA/ACADEMIC/GSOC/docbook/repository/docbook/trunk/maven/docbook-xsl/target/xsltmp/docbook-xsl-1.75.2/catalog.xml +docbook-xsl-catalog=c:/gsoc2010/docbook-xsl-1.75.2/catalog.xml +#docbook-xsl-catalog=/media/DATA/ACADEMIC/GSOC/docbook/repository/docbook/trunk/maven/docbook-xsl/target/xsltmp/docbook-xsl-1.75.2/catalog.xml # If you wish to have the ant script validate the document before # building it, set this property to the location # of your DocBook DTD. The sample document is # a DocBook 4.5 document and uncomment the line validate=true. -docbookx.dtd=file:///media/DATA/ACADEMIC/GSOC/docbook/repository/docbook/trunk/defguide/en/schema/docbookx.dtd +docbookx.dtd=c:/workhead/export/DocBookDTD/4.5/docbookx.dtd +#docbookx.dtd=file:///media/DATA/ACADEMIC/GSOC/docbook/repository/docbook/trunk/defguide/en/schema/docbookx.dtd validate=true # Set this to true if you don't need a search tab. exclude.search.from.chunked.html=false -#indexer-language is used to tell the search indexer which language the docbook is written. -#This will be used to identify the correct stemmer, and punctuations that differs from language to language. -#see the documentation for details. en=English, de=German, cn=Chinese, jp=Japanese etc. -#Country codes are available at: http://www.uspto.gov/patft/help/helpctry.htm +# indexer-language is used to tell the search indexer which language +# the docbook is written. This will be used to identify the correct +# stemmer, and punctuations that differs from language to language. +# see the documentation for details. en=English, de=German, +# cn=Chinese, jp=Japanese etc. Country codes are available at: +# http://www.uspto.gov/patft/help/helpctry.htm indexer-language=en diff --git a/xsl/webhelp/build.xml b/xsl/webhelp/build.xml index b707abc63..e95613e2a 100755 --- a/xsl/webhelp/build.xml +++ b/xsl/webhelp/build.xml @@ -28,10 +28,10 @@ - + @@ -40,45 +40,50 @@ - + - + - + + + + + + + + + + + + + + + + + + + + - - + + + + - - - - - - - - - - - - - - - @@ -89,12 +94,12 @@ - Indexing html files in ${base-dir}/content + Indexing html files in ${output-dir}/content - + - + @@ -127,13 +132,12 @@ - + Usage: - doc: Generate the documentation in the doc dir and index it. - chunk: Generate the frameset. + webhelp: Generate the document in webhelp format. index: Index the content. build-indexer: Rebuilds the indexer. -- 2.40.0