ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/site/src/xdocs/stylesheets docs.vsl
Date Wed, 12 Jun 2002 06:54:41 GMT
adammurdoch    2002/06/11 23:54:41

  Modified:    site/src/xdocs/stylesheets docs.vsl
  Log:
  Munge URLs that start with '/', to use a relative URL instead.
  
  Revision  Changes    Path
  1.4       +8 -4      jakarta-ant-myrmidon/site/src/xdocs/stylesheets/docs.vsl
  
  Index: docs.vsl
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/site/src/xdocs/stylesheets/docs.vsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- docs.vsl	11 Jun 2002 11:53:55 -0000	1.3
  +++ docs.vsl	12 Jun 2002 06:54:41 -0000	1.4
  @@ -174,13 +174,15 @@
     </th>
   #end
   
  -#macro ( projectanchor $name $value )
  +#macro ( anchor $name $value )
     #if ($value.startsWith("http://"))
       <a href="$value">$name</a>
     #elseif ($value.startsWith("/site"))
       <a href="http://jakarta.apache.org$value">$name</a>
  -  #else
  +  #elseif ( $value.startsWith("/") )
       <a href="$relativePath$value">$name</a>
  +  #else
  +    <a href="$value">$name</a>
     #end
   #end
   
  @@ -216,7 +218,7 @@
         <strong>$menu.getAttributeValue("name")</strong>
         #foreach ( $item in $menu.getChildren() )
           #set ($name = $item.getAttributeValue("name"))
  -        <div><small>#projectanchor($name $item.getAttributeValue("href"))</small></div>
  +        <div><small>#anchor($name $item.getAttributeValue("href"))</small></div>
         #end
       </div>
     #end
  @@ -243,7 +245,9 @@
   #end
   
   #macro (copy $element)
  -  #if ( $element.name == "img" )
  +  #if ( $element.name == "a" )
  +    #anchor ( $element.content $element.getAttributeValue( "href" ) )
  +  #elseif ( $element.name == "img" )
       #image ($element)
     #elseif ( $element.name == "source" )
       #source ($element)
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message