cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeme Praks" <ne...@one.lv>
Subject RE: converting docs to PDF or some other "printer-friendly" format?
Date Mon, 24 Jul 2000 12:27:18 GMT

> -----Original Message-----
> From: Stefano Mazzocchi [mailto:stefano@apache.org]
> Sent: Monday, July 24, 2000 12:15 AM
> To: cocoon-dev@xml.apache.org

[snip]

> Try
> 
>  build print-docs
> 
> :)

oops, you are referring to cocoon1, I was referring to cocoon2... sorry
for not specifying the version.
Anyway, I added the same functionality to Cocoon2, build.xml diff is
included below. You also need to include the skins/printer directory in
cocoon2, then everything should work.

Another thing that I noticed, when I built cocoon2 WAR file, it didn't
include the classes in there... so the line
  <target name="webapp" depends="prepare">
should probably be changed into
  <target name="webapp" depends="compile">

Neeme

Index: build.xml
===================================================================
RCS file: /home/cvspublic/xml-cocoon/build.xml,v
retrieving revision 1.6.2.16
diff -r1.6.2.16 build.xml
62a63
>  - printer-docs -> generates printer friendly HTML documentation in
./build/printer-docs
103c104,105
<     <property name="skin" value="./skins/xml.apache.org/"/>
---
>     <property name="browser.skin"
value="${skins.dir}/xml.apache.org/"/>
>     <property name="printer.skin" value="${skins.dir}/printer/"/>
111a114
>     <property name="build.docs.printer"
value="${build.dir}/printer-docs"/>
161a165
>     <echo message="   printer-docs --> generates printer-friendly HTML
documentation"/>
251c255,264
<           args="targetDirectory=${build.docs} ${docs.dir}/book.xml
${skin}"/>
---
>           args="targetDirectory=${build.docs} ${docs.dir}/book.xml
${browser.skin}"/>
>   </target>
> 
>   <!--
=================================================================== -->
>   <!-- Generate printer-friendly HTML docs
-->
>   <!--
=================================================================== -->
>   <target name="printer-docs" depends="prepare-docs">
>     <mkdir dir="${build.docs.printer}"/>
>     <java fork="yes"
classpath="${java.class.path}:${doc.generator.package}"
classname="${doc.generator}"
>           args="targetDirectory=${build.docs.printer}
${docs.dir}/book.xml ${printer.skin}"/>

Mime
View raw message