ceki 2004/01/23 10:15:51
Modified: docs/site logging-site.html
src/xdocs/site logging-site.xml
Log:
Fixed documentaiton bug
PR:
Obtained from:
Submitted by:
Reviewed by:
Revision Changes Path
1.2 +61 -41 logging-site/docs/site/logging-site.html
Index: logging-site.html
===================================================================
RCS file: /home/cvs/logging-site/docs/site/logging-site.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- logging-site.html 23 Jan 2004 18:04:30 -0000 1.1
+++ logging-site.html 23 Jan 2004 18:15:51 -0000 1.2
@@ -338,57 +338,77 @@
<p>
Assuming that you are using <a href="http://ant.apache.org">Ant</a> as
your build tool for your project, we will now list the modifications
-to your build file.
-
-<source><![CDATA[
- <property name="docs.src" value="./src/xdocs"/>
- <property name="docs.dest" value="./docs"/>
+to your build file:
+</p>
+
<div align="left">
+ <table cellspacing="4" cellpadding="0" border="0">
+ <tr>
+ <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ </tr>
+ <tr>
+ <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#ffffff"><pre>
+ <property name="docs.src" value="./src/xdocs"/>
+ <property name="docs.dest" value="./docs"/>
- <property name="logging-site"
- value="your copy of logging-site dir"/>
+ <property name="logging-site"
+ value="your copy of logging-site dir"/>
- <!-- Construct classpath for building the html pages-->
- <path id="site.classpath">
- <fileset dir="${logging-site}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
+ <!-- Construct classpath for building the html pages -->
+ <path id="site.classpath">
+ <fileset dir="${logging-site}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ <!-- ============================ -->
+ <!-- ======= New targets ======== -->
+ <!-- ============================ -->
- <target name="prepareSite">
- <available classname="org.apache.velocity.anakia.AnakiaTask"
- property="AnakiaTask.present">
- <classpath refid="site.classpath"/>
- </available>
- </target>
+ <target name="prepareSite">
+ <available classname="org.apache.velocity.anakia.AnakiaTask"
+ property="AnakiaTask.present">
+ <classpath refid="site.classpath"/>
+ </available>
+ </target>
- <target name="checkSite" depends="prepareSite" unless="AnakiaTask.present">
- <echo>
+ <target name="checkSite" depends="prepareSite"
unless="AnakiaTask.present">
+ <echo>
AnakiaTask is not present! Please check to make sure that
velocity.jar is in your classpath.
- </echo>
- </target>
+ </echo>
+ </target>
- <target name="site" depends="checkSite" if="AnakiaTask.present">
- <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
- <classpath refid="site.classpath"/>
- </taskdef>
+ <target name="site" depends="checkSite"
if="AnakiaTask.present">
+ <taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
+ <classpath refid="site.classpath"/>
+ </taskdef>
- <mkdir dir="${docs.dest}/css"/>
- <copy file="${logging-site}/docs/css/site.css"
tofile="${docs.dest}/css/site.css"/>
+ <mkdir dir="${docs.dest}/css"/>
+ <copy file="${logging-site}/docs/css/site.css"
tofile="${docs.dest}/css/site.css"/>
- <anakia basedir="${xdocs.src}" destdir="${docs.dest}/"
- extension=".html"
- style="site.vsl"
- projectFile="stylesheets/project.xml"
- excludes="**/stylesheets/**, empty.xml"
- includes="**/*.xml"
- lastModifiedCheck="true"
- templatePath="${logging-site}/src/xdocs/stylesheets">
- </anakia>
-
- </target>]]></source>
-</p>
+ <anakia basedir="${xdocs.src}" destdir="${docs.dest}/"
+ extension=".html"
+ style="site.vsl"
+ projectFile="stylesheets/project.xml"
+ excludes="**/stylesheets/**, empty.xml"
+ includes="**/*.xml"
+ lastModifiedCheck="true"
+ templatePath="${logging-site}/src/xdocs/stylesheets">
+ </anakia>
+ </target>
+</pre></td>
+ <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
+ </tr>
+ <tr>
+ <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ </tr>
+ </table>
+ </div>
<h2>Constructing your documentation</h2>
<p>Now, in order to build your website, all you need to do is:</p>
<div align="left">
1.2 +9 -6 logging-site/src/xdocs/site/logging-site.xml
Index: logging-site.xml
===================================================================
RCS file: /home/cvs/logging-site/src/xdocs/site/logging-site.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- logging-site.xml 23 Jan 2004 18:04:30 -0000 1.1
+++ logging-site.xml 23 Jan 2004 18:15:51 -0000 1.2
@@ -212,7 +212,8 @@
<p>
Assuming that you are using <a href="http://ant.apache.org">Ant</a> as
your build tool for your project, we will now list the modifications
-to your build file.
+to your build file:
+</p>
<source><![CDATA[
<property name="docs.src" value="./src/xdocs"/>
@@ -221,13 +222,16 @@
<property name="logging-site"
value="your copy of logging-site dir"/>
- <!-- Construct classpath for building the html pages-->
+ <!-- Construct classpath for building the html pages -->
<path id="site.classpath">
<fileset dir="${logging-site}/lib">
<include name="*.jar"/>
</fileset>
</path>
+ <!-- ============================ -->
+ <!-- ======= New targets ======== -->
+ <!-- ============================ -->
<target name="prepareSite">
<available classname="org.apache.velocity.anakia.AnakiaTask"
@@ -259,10 +263,9 @@
includes="**/*.xml"
lastModifiedCheck="true"
templatePath="${logging-site}/src/xdocs/stylesheets">
- </anakia>
-
- </target>]]></source>
-</p>
+ </anakia>
+ </target>
+]]></source>
<h2>Constructing your documentation</h2>
<p>Now, in order to build your website, all you need to do is:</p>