Submitted by: Jevica Arianne Zurbano
* replaced the breadcrumbs to point to the documentation's index to avoid
o the directory listing when accessing http://archiva.apache.org/docs/
o being pointed to a non-existing page like http://archiva.apache.org/docs/1.2-M1/docs/1.2-M1
* added 'Downloads' link in site.xml
* updated the evaluateBeanshell condition to coincide with site.xml modification
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@798430
13f79535-47bb-0310-9956-
ffa450edef68
<![CDATA[
javax.xml.xpath.XPath xpath = javax.xml.xpath.XPathFactory.newInstance().newXPath();
org.xml.sax.InputSource is = new org.xml.sax.InputSource( new java.io.FileInputStream( "${basedir}/src/site/site.xml" ) );
- xpath.evaluate( "//project/body/breadcrumbs/item[@name='${project.version}']/@href", is ).equals( "/docs/${project.version}" )
+ xpath.evaluate( "//project/body/breadcrumbs/item[@name='${project.version}']/@href", is ).equals( "/index.html" )
]]>
</condition>
</evaluateBeanshell>
<project>
<body>
<breadcrumbs>
- <item name="1.2.1" href="/docs/1.2.1" />
+ <item name="1.2.1" href="/index.html" />
</breadcrumbs>
<menu name="Introduction">
- <item name="Quick Start" href="/quick-start.html" />
- <item name="Feature Tour" href="/tour/index.html" />
+ <item name="Quick Start" href="/quick-start.html" />
+ <item name="Feature Tour" href="/tour/index.html" />
<item name="Release Notes" href="/release-notes.html" />
+ <item name="Downloads" href="http://archiva.apache.org/download.html" />
</menu>
<menu name="Users Guide">