MPFAQ-19 : Optional toplinks and layout fix.

Patch submitted by : Lukas Theussl
Patch reviewed by : Arnaud Heritier

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@278607 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier
2005-09-04 16:08:22 +00:00
parent aaa360e956
commit 4f5b245f13
4 changed files with 17 additions and 1 deletions

View File

@@ -23,3 +23,6 @@ maven.faq.src=${maven.docs.src}
# Destination directory where output xdocs file are produced
maven.faq.dest=${maven.gen.docs}
# Whether to generate links to the top of the page
maven.faq.toplinks=true

View File

@@ -80,10 +80,13 @@
<jsl:template match="answer">
<dd>
<jsl:applyTemplates trim="true" />
<j:if test="${context.getVariable('maven.faq.toplinks') == 'true'}">
<j:set var="top"><x:expr select="../../../@title"/></j:set>
<j:set var="_top">#<doc:escapeNameToken value="${top}"/></j:set>
<div class="xright"><a href="${_top}">[top]</a></div>
<jsl:applyTemplates trim="true" />
<br/>
</j:if>
</dd>
</jsl:template>

View File

@@ -23,6 +23,7 @@
</properties>
<body>
<release version="1.5-SNAPSHOT" date="in SVN">
<action dev="aheritier" type="fix" issue="MPFAQ-19" due-to="Lukas Theussl">Optional toplinks and layout fix.</action>
<action dev="aheritier" type="fix" issue="MPFAQ-16" due-to="Lukas Theussl">FAQ plugin does not produce valid XHTML 1.0 Transitional.</action>
<action dev="aheritier" type="add" issue="MPFAQ-15" due-to="Lukas Theussl">Adding a "top" link beside each answer.</action>
<action dev="dion" type="update" issue="MPFAQ-14" due-to="florent ramiere">Document .fml extension requirement</action>

View File

@@ -44,6 +44,15 @@
Defaults to the value of maven.gen.docs (which is ${maven.build.dir}/generated-xdocs).
</td>
</tr>
<tr>
<td>maven.faq.toplinks</td>
<td>Yes</td>
<td>
Specifies whether links to the top of the page should be
generated after each answer.
Defaults to <code>true</code>.
</td>
</tr>
</table>
</section>
</body>