kaz 02/05/04 10:33:02
Modified: src/dvsl/xdocs site.dvsl
src/templates/xdocs Control.vm
Added: src/templates/xdocs maven-reports.xml project-info.xml
Log:
Made some of the links on the Maven navbar collapsable.
Revision Changes Path
1.37 +30 -20 jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl
Index: site.dvsl
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- site.dvsl 1 May 2002 22:37:46 -0000 1.36
+++ site.dvsl 4 May 2002 17:33:02 -0000 1.37
@@ -172,26 +172,36 @@
## Standard Maven Navigation
<div><strong>Maven Documentation</strong>
<div><small><a href="$relativePath/index.html">Front
Page</a></small></div>
- <div><small><a href="$relativePath/mail-lists.html">Mailing
Lists</a></small></div>
- <div><small><a
href="$relativePath/developer-list.html">Developers</a></small></div>
- <div><small><a
href="$relativePath/dependencies.html">Dependencies</a></small></div>
- #if
($context.toolbox.fileutil.file("$context.toolbox.docSrc/tasks.xml").exists())
- <div><small><a
href="$relativePath/tasks.html">Tasks</a></small></div>
- #end
- #if ($pom.cvsWebUrl)
- <div><small><a href="$pom.cvsWebUrl.toString().trim()">CVS
Repository</a></small></div>
- #end
- #if ($pom.issueTrackingUrl)
- <div><small><a href="$pom.issueTrackingUrl.toString().trim()">Issue
Tracking</a></small></div>
- #end
- <div><small><a href="$relativePath/changelog.html">Change
Log</a></small></div>
- #if ($context.toolbox.testSrcPresent == "true")
- <div><small><a href="$relativePath/junit-report.html">Unit
Tests</a></small></div>
- #end
- #if ($context.toolbox.srcPresent == "true")
- <div><small><a href="$relativePath/jdepend-report.html">Metric
Results</a></small></div>
- <div><small><a
href="$relativePath/checkstyle-report.html">Checkstyle Report</a></small></div>
- #end
+ <div>
+ <small><a href="$relativePath/project-info.html">Project
Info</a></small>
+ #if ($currentDir == "." && ($infilename == "project-info.xml" ||
$infilename == "mail-lists.xml" || $infilename == "developer-list.xml" || $infilename
== "dependencies.xml"))
+ <div><small><a href="$relativePath/mail-lists.html">Mailing
Lists</a></small></div>
+ <div><small><a
href="$relativePath/developer-list.html">Developers</a></small></div>
+ <div><small><a
href="$relativePath/dependencies.html">Dependencies</a></small></div>
+ #if ($pom.cvsWebUrl)
+ <div><small><a href="$pom.cvsWebUrl.toString().trim()">CVS
Repository</a></small></div>
+ #end
+ #if ($pom.issueTrackingUrl)
+ <div><small><a
href="$pom.issueTrackingUrl.toString().trim()">Issue Tracking</a></small></div>
+ #end
+ #end
+ </div>
+ <div>
+ <small><a href="$relativePath/maven-reports.html">Maven
Reports</a></small>
+ #if ($currentDir == "." && ($infilename == "maven-reports.xml" ||
$infilename == "tasks.xml" || $infilename == "changelog.xml" || $infilename ==
"junit-report.xml" || $infilename == "jdepend-report.xml" || $infilename ==
"checkstyle-report.xml"))
+ #if
($context.toolbox.fileutil.file("$context.toolbox.docSrc/tasks.xml").exists())
+ <div><small><a
href="$relativePath/tasks.html">Tasks</a></small></div>
+ #end
+ <div><small><a href="$relativePath/changelog.html">Change
Log</a></small></div>
+ #if ($context.toolbox.testSrcPresent == "true")
+ <div><small><a href="$relativePath/junit-report.html">Unit
Tests</a></small></div>
+ #end
+ #if ($context.toolbox.srcPresent == "true")
+ <div><small><a href="$relativePath/jdepend-report.html">Metric
Results</a></small></div>
+ <div><small><a
href="$relativePath/checkstyle-report.html">Checkstyle Report</a></small></div>
+ #end
+ #end
+ </div>
<div><small><a
href="$relativePath/apidocs/">JavaDocs</a></small></div>
<div><small><a href="$relativePath/xref/">Source
XReference</a></small></div>
<div><small><a
href="http://jakarta.apache.org/turbine/maven/development-process.html">Development
Process</a></small></div>
1.2 +8 -8 jakarta-turbine-maven/src/templates/xdocs/Control.vm
Index: Control.vm
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/templates/xdocs/Control.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Control.vm 4 May 2002 01:50:11 -0000 1.1
+++ Control.vm 4 May 2002 17:33:02 -0000 1.2
@@ -1,13 +1,13 @@
## ------------------------------------------------------------------
-## Generate the reactor
+## Generate the xdocs
## ------------------------------------------------------------------
-$buildElements.add("index.xml")
-$buildElements.add("mail-lists.xml")
-$buildElements.add("developer-list.xml")
-$buildElements.add("dependencies.xml")
+#set ($dir = $generator.templatePath)
+#set ($xdocs = $files.file($dir).list())
-#foreach ($buildElement in $buildElements)
-Generating $buildElement
- Successful: $generator.parse($buildElement, $buildElement)
+#foreach ($xdoc in $xdocs)
+ #if ($xdoc.endsWith(".xml"))
+Generating --> $xdoc
+$generator.parse($xdoc, $xdoc)
+ #end
#end
1.1 jakarta-turbine-maven/src/templates/xdocs/maven-reports.xml
Index: maven-reports.xml
===================================================================
<?xml version="1.0"?>
<document>
<properties>
<title>Project Information</title>
<author email="[EMAIL PROTECTED]">Pete Kazmier</author>
</properties>
<body>
<section name="Maven Generated Reports">
<p>
This document provides an overview of the various reports that
are automatically generated by Maven. Each report is briefly
described below.
</p>
<subsection name="Overview">
<table>
<tr><th>Document</th><th>Description</th></tr>
<!--
Leaving this commented out until I have the document
auto-generated from the @task tags in the source code.
<tr><td><a href="tasks.html">Tasks</a></td>
<td>
This document contains a list of tasks that need to be
completed.
</td>
</tr>
-->
<tr><td><a href="changelog.html">Change Log</a></td>
<td>
This document provides a history of the most recent
changes made to the project.
</td>
</tr>
#if ($files.file($project.build.unitTestSourceDirectory).exists())
<tr><td><a href="junit-report.html">Unit Tests</a></td>
<td>
This document provides the results of the unit tests that
are part of this project. Successes and failures are
noted.
</td>
</tr>
#end
#if ($project.build.sourceDirectories.size() > 0)
<tr><td><a href="jdepend-report.html">Metric Results</a></td>
<td>
This document provides information on various source code
metrics that have been computed. These metrics can
provide useful information regarding the abstractness and
total number of classes.
</td>
</tr>
<tr><td><a href="checkstyle-report.html">Checkstyle Report</a></td>
<td>
This document provides the results of the Checkstyle
report. This report provides an indication of how well
this project complies with its coding conventions.
</td>
</tr>
#end
</table>
</subsection>
</section>
</body>
</document>
1.1 jakarta-turbine-maven/src/templates/xdocs/project-info.xml
Index: project-info.xml
===================================================================
<?xml version="1.0"?>
<document>
<properties>
<title>Project Information</title>
<author email="[EMAIL PROTECTED]">Pete Kazmier</author>
</properties>
<body>
<section name="General Project Information">
<p>
This document provides an overview of the various documents and
links that are part of this project's general information. All
of this content is automatically generated by Maven on behalf of
the project.
</p>
<subsection name="Overview">
<table>
<tr><th>Document</th><th>Description</th></tr>
<tr><td><a href="mail-lists.html">Mailing Lists</a></td>
<td>
This document provides subscription and archive
information for this project's mailing lists.
</td>
</tr>
<tr><td><a href="developer-list.html">Developers</a></td>
<td>
This document provides information on the developers of
this project. These are the individuals who have
contributed to the project in one form or another.
</td>
</tr>
<tr><td><a href="dependencies.html">Dependencies</a></td>
<td>
This document lists the projects dependencies and provides
information on each dependency.
</td>
</tr>
#if ($project.cvsWebUrl)
<tr><td><a href="$project.cvsWebUrl.toString().trim()">CVS
Repository</a></td>
<td>
This is a link to the online CVS repository that can be
viewed via a web browser.
</td>
</tr>
#end
#if ($project.issueTrackingUrl)
<tr><td><a href="$project.issueTrackingUrl.toString().trim()">Issue
Tracking</a></td>
<td>
This is a link to the issue tracking system for this
project. Issues (bugs, features, change requests) can be
created and queried using this link.
</td>
</tr>
#end
</table>
</subsection>
</section>
</body>
</document>