]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1002] Website navigation links don't work as expected
authorMaria Odea B. Ching <oching@apache.org>
Tue, 28 Jul 2009 07:42:50 +0000 (07:42 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Tue, 28 Jul 2009 07:42:50 +0000 (07:42 +0000)
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

archiva-docs/pom.xml
archiva-docs/src/site/site.xml

index 80f293284655eb4deb933fddc09fa3a39b749c33..63d81bf4bde42537b1218b449870130bb2282337 100644 (file)
                         <![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>
index b9a8f54b34c64d7634b1f17b8063dc427df4aff9..9bcd1072c37952e4ea73d8ad489bd8592f56520b 100644 (file)
 <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">