Added a new property that enables a user to disable the inclusion of the
"Project Documentation" section of the navbar (i.e. the Maven generated
stuff). This is useful for documentation sites only. The new property
is:
maven.xdoc.generateProjectDocumentation = yes
If you want to disable the generation, set this value to 'no' in your
project.properties.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112833 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
61be02576a
commit
2e549c0f09
3 files changed
+12
No files matched your search
@@ -263,6 +263,11 @@
|
||||
<j:set
|
||||
var="reports"
|
||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
||||
|
||||
<!-- Does the user want the maven-generated docs on their site? -->
|
||||
<j:set
|
||||
var="generateProjectDocumentation"
|
||||
value="${maven.xdoc.generateProjectDocumentation}"/>
|
||||
|
||||
<!-- Need the escaper to html output. -->
|
||||
<j:useBean var="escape" class="org.apache.velocity.anakia.Escape"/>
|
||||
|
||||
@@ -10,6 +10,7 @@ maven.docs.outputencoding = ISO-8859-1
|
||||
maven.gen.docs = ${maven.build.dir}/generated-xdocs
|
||||
|
||||
maven.xdoc.developmentProcessUrl=http://jakarta.apache.org/turbine/maven/development-process.html
|
||||
maven.xdoc.generateProjectDocumentation = yes
|
||||
|
||||
#
|
||||
# DATE Preferences
|
||||
|
||||
@@ -143,6 +143,11 @@
|
||||
<!-- Standard Maven Navigation -->
|
||||
<j:set var="fileName">${file}</j:set>
|
||||
|
||||
<!--
|
||||
! Check to see if the user wishes to include the
|
||||
! maven-generated docs on their site.
|
||||
!-->
|
||||
<j:if test="${generateProjectDocumentation.equals('yes')}">
|
||||
<div>
|
||||
<strong>Project Documentation</strong>
|
||||
<div>
|
||||
@@ -349,6 +354,7 @@
|
||||
</div>
|
||||
</j:if>
|
||||
</div>
|
||||
</j:if>
|
||||
<j:if test="${context.findVariable('maven.xdoc.date') == 'navigation-bottom'}">
|
||||
<div>
|
||||
<small>Last published: ${build.date}</small>
|
||||
|
||||
Reference in new issue
Block a user