jon 01/07/10 15:39:38
Modified: . build.xml
docs/site cvsonwin32.html jakarta-site-tags-example.html
xdocs/stylesheets site.vsl
Added: xdocs/stylesheets site_printable.vsl
Log:
removed subsection blah that jason added. removed section blah, but forgot
subsection. rebuilt html as appropriate.
added ability to generate printable version of the website. i'm not
checking this stuff in. if people want it, they can do it locally.
Revision Changes Path
1.6 +26 -0 jakarta-site2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-site2/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 2001/04/30 16:34:53 1.5
+++ build.xml 2001/07/10 22:39:25 1.6
@@ -4,6 +4,7 @@
<property name="project.name" value="site"/>
<property name="docs.src" value="./xdocs"/>
<property name="docs.dest" value="./docs"/>
+ <property name="docs.dest.print" value="./docs_print"/>
<!-- Build classpath -->
<path id="classpath">
@@ -55,4 +56,29 @@
</copy>
-->
</target>
+
+ <!-- This Target is for output of documentation that can be printed -->
+ <target name="docs_print" depends="prepare-error" if="AnakiaTask.present">
+ <taskdef name="anakia"
+ classname="org.apache.velocity.anakia.AnakiaTask">
+ <classpath refid="classpath"/>
+ </taskdef>
+ <anakia basedir="${docs.src}" destdir="${docs.dest.print}/"
+ extension=".html" style="./site_printable.vsl"
+ projectFile="stylesheets/project.xml"
+ excludes="**/stylesheets/** empty.xml"
+ includes="**/*.xml"
+ lastModifiedCheck="true"
+ templatePath="./xdocs/stylesheets"
+ >
+ </anakia>
+ <copy todir="${docs.dest.print}/images" filtering="no">
+ <fileset dir="${docs.src}/images">
+ <include name="**/*.gif"/>
+ <include name="**/*.jpeg"/>
+ <include name="**/*.jpg"/>
+ </fileset>
+ </copy>
+ </target>
+
</project>
1.24 +0 -6 jakarta-site2/docs/site/cvsonwin32.html
Index: cvsonwin32.html
===================================================================
RCS file: /home/cvs/jakarta-site2/docs/site/cvsonwin32.html,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- cvsonwin32.html 2001/07/10 02:06:49 1.23
+++ cvsonwin32.html 2001/07/10 22:39:29 1.24
@@ -190,7 +190,6 @@
<a name="MindTerm"><strong>MindTerm</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
@@ -282,7 +281,6 @@
<a name="VanDyke SecureCRT SSH"><strong>VanDyke SecureCRT SSH</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
@@ -326,7 +324,6 @@
<a name="General note on localhost under Windows"><strong>General note on
localhost under Windows</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
@@ -345,7 +342,6 @@
<a name="Using the jCVS client"><strong>Using the jCVS client</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
@@ -368,7 +364,6 @@
<a name="Using the WinCVS client"><strong>Using the WinCVS
client</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
@@ -408,7 +403,6 @@
<a name="Using command line CVS"><strong>Using command line
CVS</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
1.3 +0 -1 jakarta-site2/docs/site/jakarta-site-tags-example.html
Index: jakarta-site-tags-example.html
===================================================================
RCS file: /home/cvs/jakarta-site2/docs/site/jakarta-site-tags-example.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jakarta-site-tags-example.html 2001/07/10 02:06:52 1.2
+++ jakarta-site-tags-example.html 2001/07/10 22:39:30 1.3
@@ -211,7 +211,6 @@
<a name="Subsection of Section 3"><strong>Subsection of Section
3</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
<p>
1.19 +0 -1 jakarta-site2/xdocs/stylesheets/site.vsl
Index: site.vsl
===================================================================
RCS file: /home/cvs/jakarta-site2/xdocs/stylesheets/site.vsl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- site.vsl 2001/07/10 02:07:12 1.18
+++ site.vsl 2001/07/10 22:39:34 1.19
@@ -134,7 +134,6 @@
<a
name="$subsection.getAttributeValue("name")"><strong>$subsection.getAttributeValue("name")</strong></a>
</font>
</td></tr>
- <tr><td><br/></td></tr>
<tr><td>
<blockquote>
#foreach ( $items in $subsection.getChildren() )
1.1 jakarta-site2/xdocs/stylesheets/site_printable.vsl
Index: site_printable.vsl
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- Content Stylesheet for Site -->
## Defined variables
#set ($bodybg = "#ffffff")
#set ($bodyfg = "#000000")
#set ($bodylink = "#525D76")
#set ($bannerbg = "#525D76")
#set ($bannerfg = "#ffffff")
#set ($subbannerbg = "#828DA6")
#set ($subbannerfg = "#ffffff")
#set ($tablethbg = "#039acc")
#set ($tabletdbg = "#a0ddf0")
<!-- start the processing -->
#document()
<!-- end the processing -->
## This is where the macro's live
#macro ( table $table)
<table>
#foreach ( $items in $table.getChildren() )
#if ($items.getName().equals("tr"))
#tr ($items)
#end
#end
</table>
#end
#macro ( tr $tr)
<tr>
#foreach ( $items in $tr.getChildren() )
#if ($items.getName().equals("td"))
#td ($items)
#elseif ($items.getName().equals("th"))
#th ($items)
#end
#end
</tr>
#end
#macro ( td $value)
#if ($value.getAttributeValue("colspan"))
#set ($colspan = $value.getAttributeValue("colspan"))
#end
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
<td bgcolor="$tabletdbg" colspan="$!colspan" rowspan="$!rowspan" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren())
$xmlout.outputString($value, true)
#else
#end
</font>
</td>
#end
#macro ( th $value)
#if ($value.getAttributeValue("colspan"))
#set ($colspan = $value.getAttributeValue("colspan"))
#end
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
<td bgcolor="$tablethbg" colspan="$!colspan" rowspan="$!rowspan" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren())
$xmlout.outputString($value, true)
#else
#end
</font>
</td>
#end
#macro ( projectanchor $name $value )
#if ($value.startsWith("http://"))
• <a href="$value">$name</a>
#elseif ($value.startsWith("/site"))
• <a href="http://jakarta.apache.org$value">$name</a>
#else
• <a href="$relativePath$value">$name</a>
#end
#end
#macro ( metaauthor $author $email )
<meta name="author" value="$author">
<meta name="email" value="$email">
#end
#macro ( image $value )
#if ($value.getAttributeValue("width"))
#set ($width=$value.getAttributeValue("width"))
#end
#if ($value.getAttributeValue("height"))
#set ($height=$value.getAttributeValue("height"))
#end
#if ($value.getAttributeValue("align"))
#set ($align=$value.getAttributeValue("align"))
#end
<img src="$relativePath$value.getAttributeValue("src")" width="$!width"
height="$!height" align="$!align">
#end
#macro ( source $value)
<div align="left">
<font size="2"><pre>$escape.getText($value.getText())</pre></font>
</div>
#end
#macro ( subsection $subsection)
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="$subbannerbg">
<font color="$subbannerfg" face="arial,helvetica,sanserif">
<a
name="$subsection.getAttributeValue("name")"><strong>$subsection.getAttributeValue("name")</strong></a>
</font>
</td></tr>
<tr><td><br/></td></tr>
<tr><td>
<blockquote>
#foreach ( $items in $subsection.getChildren() )
#if ($items.getName().equals("img"))
#image ($items)
#elseif ($items.getName().equals("source"))
#source ($items)
#elseif ($items.getName().equals("table"))
#table ($items)
#else
$xmlout.outputString($items)
#end
#end
</blockquote>
</td></tr>
<tr><td><br/></td></tr>
</table>
#end
#macro ( section $section)
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="$bannerbg">
<font color="$bannerfg" face="arial,helvetica,sanserif">
<a
name="$section.getAttributeValue("name")"><strong>$section.getAttributeValue("name")</strong></a>
</font>
</td></tr>
<tr><td><br/></td></tr>
<tr><td>
<!--<blockquote>-->
#foreach ( $items in $section.getChildren() )
#if ($items.getName().equals("img"))
#image ($items)
#elseif ($items.getName().equals("source"))
#source ($items)
#elseif ($items.getName().equals("table"))
#table ($items)
#elseif ($items.getName().equals("subsection"))
#subsection ($items)
#else
$xmlout.outputString($items)
#end
#end
<!--</blockquote>-->
</p>
</td></tr>
<tr><td><br/></td></tr>
</table>
#end
#macro (getProjectImage)
#if ($project.getChild("logo"))
<td align="left">
<a href="http://jakarta.apache.org"><img
src="http://jakarta.apache.org/images/jakarta-logo.gif" border="0"/></a>
#set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
#if ( $logoString.startsWith("/") )
<a href="$project.getAttributeValue("href")"><img src="$relativePath$logoString"
alt="$project.getChild("logo").getText()" border="0"/></a>
#else
<a href="$project.getAttributeValue("href")"><img src="$relativePath/$logoString"
alt="$project.getChild("logo").getText()" border="0"/></a>
#end
</td>
#else
<td>
<a href="http://jakarta.apache.org"><img
src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a>
</td>
#end
#end
#macro ( makeHorizontalProject )
#set ($menus = $project.getChild("body").getChildren("menu"))
<table cellspacing="4">
#foreach ( $menu in $menus )
<tr><td>
<strong>$menu.getAttributeValue("name")</strong>
</td><td>
#foreach ( $item in $menu.getChildren() )
#set ($name = $item.getAttributeValue("name"))
#projectanchor($name $item.getAttributeValue("href"))
#end
</td>
</tr>
#end
</table>
#end
#macro (document)
<!-- ====================================================================== -->
<!-- Main Page Section -->
<!-- ====================================================================== -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
#set ($authors = $root.getChild("properties").getChildren("author"))
#foreach ( $au in $authors )
#metaauthor ( $au.getText() $au.getAttributeValue("email") )
#end
<title>$project.getChild("title").getText() -
$root.getChild("properties").getChild("title").getText()</title>
</head>
<body bgcolor="$bodybg" text="$bodyfg" link="$bodylink">
<table border="0" width="100%" cellspacing="0">
<!-- TOP IMAGE -->
<tr>
#getProjectImage()
</tr>
</table>
<table border="0" width="100%" cellspacing="4">
<tr><td>
<hr noshade="" size="1"/>
</td></tr>
<tr>
<td align="left" valign="top">
#set ($allSections =
$root.getChild("body").getChildren("section"))
#foreach ( $section in $allSections )
#section ($section)
#end
</td>
</tr>
<tr><td>
<hr noshade="" size="1"/>
</td></tr>
<tr><td>
<!-- FOOT Navigation -->
#makeHorizontalProject ()
<!-- FOOTER -->
<tr><td>
<hr noshade="" size="1"/>
</td></tr>
<tr><td>
<div align="center"><font color="$bodylink" size="-1"><em>
Copyright © 1999-2001, Apache Software Foundation
</em></font></div>
</td></tr>
</table>
</body>
</html>
#end