[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] WebHelp Search
Dave,We do use a customized version of the build.xml, but it is very similar to the original:
<path id="wh-indexer-classpath"> <filelist dir="${env.DCBK_HOME}/lib/docbook-xsl-ns/extensions/"> <file name="webhelpindexer.jar"/> <file name="lucene-analyzers-3.0.0.jar"/> <file name="lucene-core-3.0.0.jar"/> </filelist> <filelist dir="${env.DCBK_HOME}/lib"> <file name="saxon6/saxon.jar" /> <file name="xalan/xercesImpl.jar" /> <file name="xalan/xml-apis.jar"/> </filelist> </path> <target name="docbook.html" description="Builds the html for the book"> <copy todir="output/imagesdb"> <fileset dir="${env.DCBK_HOME}/custom/${BOOKLIB}/imagesdb" /> </copy> <copy todir="output/images" failonerror="false"> <fileset dir="images"> <patternset refid="raw.images" /> </fileset> </copy> <copy todir="output/images_extra" failonerror="false"> <fileset dir="images_extra"> <patternset refid="raw.images" /> </fileset> </copy><copy failonerror="false" file="output/imagesdb/logo_${docbook.logo}.gif" tofile="output/imagesdb/logo.gif" /> <java classname="com.icl.saxon.StyleSheet" classpathref="xslt-classpath" fork="true" dir="." maxmemory="512M"> <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" /> <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl" /> <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration" /> <sysproperty key="xslthl.config" value="file:///${env.DCBK_HOME}/lib/docbook-xsl-ns/highlighting/xslthl-config.xml" />
<arg value="-x" /> <arg value="org.apache.xml.resolver.tools.ResolvingXMLReader" /> <arg value="-y" /> <arg value="org.apache.xml.resolver.tools.ResolvingXMLReader" /> <arg value="-r" /> <arg value="org.apache.xml.resolver.tools.CatalogResolver" /> <arg value="${docbook.in}" /> <arg value="${env.DCBK_HOME}/custom/${BOOKLIB}/webhelp.xsl" /> <arg value="target.database.document=${HTMLSITEMAP}" /> <arg value="current.docid=${docbook.docid}" /> <arg value="webhelp.base.dir=output"/> </java> <!-- Copy the tree stuff --> <copy todir="output"> <fileset dir="${env.DCBK_HOME}/lib/docbook-xsl-ns/webhelp/template"> <include name="**/common/**"/> <exclude name="**/common/css/"/> <exclude name="**/common/images/"/> </fileset> </copy> <copy todir="output/common/jquery"> <fileset dir="${env.DCBK_HOME}/custom/fuse/wh_navtree"> <include name="**/*"/> </fileset> </copy> <!-- Set up the search index --> <copy todir="output"> <fileset dir="${env.DCBK_HOME}/lib/docbook-xsl-ns/webhelp/template"> <include name="**/content/**"/> <exclude name="**/content/search/*.props"/> <exclude name="**/content/search/stemmers/*"/> </fileset> <cutdirsmapper dirs="1" /> </copy><!-- We separate this out so we only copy the stopwords list and stemmer for the indexer language -->
<copy todir="output"> <fileset dir="${env.DCBK_HOME}/lib/docbook-xsl-ns/webhelp/template"> <include name="**/content/search/default.props"/> <include name="**/content/search/punctuation.props"/> <include name="**/content/search/en*.props"/> <include name="**/content/search/stemmers/en_stemmer.js"/> </fileset> <cutdirsmapper dirs="1" /> </copy> <!-- indexertask htmldir="output/content" indexerLanguage="en"/ --><java classname="com.nexwave.nquindexer.IndexerMain" classpathref="wh-indexer-classpath"
fork="true"> <arg value="output"/> <arg value="en"/> </java> <delete> <fileset dir="output/search" includes="*.props"/> </delete> </target>The results are generated without using the content directory.The output directory contains the following:
* *.html * search/ ** stemmers ** index-2.js ** l10.n.js ** index-1.js ** nwSearchFnt.js ** htmlFileInfoList.js ** index-3.js * common/ ** jquery/ ** main.js ** browserDetect.js * images/ Cheers, Eric On 01/14/2013 05:12 PM, David Cramer wrote:
Hi Eric, There were some changes in this release related to removing the content directory that might have affected you. Could you provide some more information about your environment or the output of a build? Are you using a customized version of the build.xml for example? Thanks, David On 01/14/2013 03:33 PM, Eric Johnson wrote:I updated to the most recent version of the XSLT stylesheets and the search panel for the WebHelp is broken. I made the suggested changes to my tool chain, but I am not getting the htmlFileList.js file generated. Any ideas on what I goofed up? TIA Eric --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]