Author: xavier
Date: Thu Jan 3 08:19:13 2008
New Revision: 608544
URL: http://svn.apache.org/viewvc?rev=608544&view=rev
Log:
IMPROVEMENT: Provide a printer-friendly version of the documentation (IVY-688)
Modified:
ant/ivy/core/branches/2.0.0-beta1/doc/index.html
ant/ivy/core/trunk/doc/index.html
ant/ivy/site/build.xml
ant/ivy/site/style/color.css
ant/ivy/site/style/print-style.css
ant/ivy/site/style/style.css
Modified: ant/ivy/core/branches/2.0.0-beta1/doc/index.html
URL:
http://svn.apache.org/viewvc/ant/ivy/core/branches/2.0.0-beta1/doc/index.html?rev=608544&r1=608543&r2=608544&view=diff
==============================================================================
--- ant/ivy/core/branches/2.0.0-beta1/doc/index.html (original)
+++ ant/ivy/core/branches/2.0.0-beta1/doc/index.html Thu Jan 3 08:19:13 2008
@@ -50,6 +50,8 @@
You can also browse this documentation offline either by downloading the
documentation distribution, or by checking out the doc directory from svn. This
documentation uses <a href="http://xooki.sourceforge.net/">xooki</a> as
documentation engine, so you can very easily [[get-involved edit it and submit
patches]] when you browse it from source.
+A <a href="book.html">printer-friendly version</a> of this whole documentation
is also provided for your convenience.
+
Since Ivy [[history/2.0.0-alpha-2 2.0.0-alpha-2]], we keep an online history
of the documentation. You can thus browse history versions online (in the
history menu in the web site) and even check the trunk version documentation
currently in development.
For earlier versions, we suggest downloading the documentation to browse the
documentation corresponding to the version you use. The full history of Ivy
versions with corresponding links for download is available in the history menu
on the web site.
Modified: ant/ivy/core/trunk/doc/index.html
URL:
http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/index.html?rev=608544&r1=608543&r2=608544&view=diff
==============================================================================
--- ant/ivy/core/trunk/doc/index.html (original)
+++ ant/ivy/core/trunk/doc/index.html Thu Jan 3 08:19:13 2008
@@ -50,6 +50,8 @@
You can also browse this documentation offline either by downloading the
documentation distribution, or by checking out the doc directory from svn. This
documentation uses <a href="http://xooki.sourceforge.net/">xooki</a> as
documentation engine, so you can very easily [[get-involved edit it and submit
patches]] when you browse it from source.
+A <a href="book.html">printer-friendly version</a> of this whole documentation
is also provided for your convenience.
+
Since Ivy [[history/2.0.0-alpha-2 2.0.0-alpha-2]], we keep an online history
of the documentation. You can thus browse history versions online (in the
history menu in the web site) and even check the trunk version documentation
currently in development.
For earlier versions, we suggest downloading the documentation to browse the
documentation corresponding to the version you use. The full history of Ivy
versions with corresponding links for download is available in the history menu
on the web site.
Modified: ant/ivy/site/build.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/site/build.xml?rev=608544&r1=608543&r2=608544&view=diff
==============================================================================
--- ant/ivy/site/build.xml (original)
+++ ant/ivy/site/build.xml Thu Jan 3 08:19:13 2008
@@ -24,17 +24,46 @@
<target name="/all" description="--> force whole site generation,
disabling incremental mode">
<property name="checkUpToDate" value="false" />
</target>
+
+ <target name="copy-resources">
+ <copy todir="${target.dir}">
+ <fileset dir="${basedir}"
+
includes="*.cgi,images/**,style/**,samples/**,js/**,schemas/**,presentations/**,history/*/images/**,history/*/samples/**,test/**"
/>
+ </copy>
+ </target>
+
+ <macrodef name="generate-printdoc">
+ <attribute name="version" />
+ <sequential>
+ <xooki:print
+ src="${basedir}/history/@{version}/index.html"
+ dest="${target.dir}/history/@{version}/book.html" />
+ </sequential>
+ </macrodef>
+
+ <target name="generate-printdoc-trunk" depends="copy-resources"
+ description="--> Generates trunk documentation printer
friendly version">
+ <generate-printdoc version="trunk" />
+ </target>
+
+ <target name="generate-printdoc-latest-milestone"
depends="copy-resources"
+ description="--> Generates latest-milestone
documentation printer friendly version">
+ <generate-printdoc version="latest-milestone" />
+ </target>
+
+ <target name="generate-printdoc" depends="copy-resources"
+ description="--> Generates documentation printer
friendly version">
+ <input message="Ivy version to generate doc for?"
addproperty="version" />
+ <generate-printdoc version="${version}" />
+ </target>
+
- <target name="generate-site" depends="init-imported-history"
+ <target name="generate-site" depends="init-imported-history,
copy-resources"
description="--> Generates site for publication">
<!-- by default we use incremental mode, which checks if files require
generation -->
<property name="checkUpToDate" value="true" />
<!-- xooki:generate requires sun java 6 jdk (with jrunscript)
in path and Apache Ant 1.7 -->
- <copy todir="${target.dir}">
- <fileset dir="${basedir}"
-
includes="*.cgi,images/**,style/**,samples/**,js/**,schemas/**,presentations/**,history/*/images/**,history/*/samples/**,test/**"
/>
- </copy>
<xooki:generate destDir="${target.dir}"
checkUpToDate="${checkUpToDate}">
<fileset dir="${basedir}">
<include name="**/*.html"/>
Modified: ant/ivy/site/style/color.css
URL:
http://svn.apache.org/viewvc/ant/ivy/site/style/color.css?rev=608544&r1=608543&r2=608544&view=diff
==============================================================================
--- ant/ivy/site/style/color.css (original)
+++ ant/ivy/site/style/color.css Thu Jan 3 08:19:13 2008
@@ -25,7 +25,7 @@
background-color: #fff;
}
-h1, h2, h3, h4, h5, h6 {
+h1, h2, h3, h4, h5, h6, .toc-title {
color: #7a9438;
}
h1 {
Modified: ant/ivy/site/style/print-style.css
URL:
http://svn.apache.org/viewvc/ant/ivy/site/style/print-style.css?rev=608544&r1=608543&r2=608544&view=diff
==============================================================================
--- ant/ivy/site/style/print-style.css (original)
+++ ant/ivy/site/style/print-style.css Thu Jan 3 08:19:13 2008
@@ -44,9 +44,20 @@
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: small;
}
-h1, h2, h3, h4, h5, h6 {
+h1, h2, h3, h4, h5, h6, .toc-title {
font-family: "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular,
Verdana, sans-serif;
}
+.toc-title {
+ margin: 15px;
+ padding: 10px;
+ font-size: 2em;
+ text-align: center;
+ border: solid 2px;
+ -moz-border-radius-topleft: 5px;
+ -moz-border-radius-topright: 5px;
+ -moz-border-radius-bottomright: 5px;
+ -moz-border-radius-bottomleft: 5px;
+}
h1 {
/*
margin-left: 15px;
@@ -98,6 +109,7 @@
pre {
padding: 0.75em 1.5em;
font-size: 1em;
+ overflow: auto;
}
.form-item {
margin-top: 1em;
Modified: ant/ivy/site/style/style.css
URL:
http://svn.apache.org/viewvc/ant/ivy/site/style/style.css?rev=608544&r1=608543&r2=608544&view=diff
==============================================================================
--- ant/ivy/site/style/style.css (original)
+++ ant/ivy/site/style/style.css Thu Jan 3 08:19:13 2008
@@ -37,7 +37,6 @@
display: table;
margin: 8px auto;
padding: 0;
- width: 98%;
}
body, p, td, li, ul, ol {
font-family: Verdana, Helvetica, Arial, sans-serif;
@@ -97,6 +96,7 @@
pre {
padding: 0.75em 1.5em;
font-size: 1em;
+ overflow: auto;
}
.form-item {
margin-top: 1em;