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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user