You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/07/09 09:29:03 UTC

cvs commit: jakarta-avalon-phoenix/src/xdocs/stylesheets docs.vsl templates.vm

donaldp     2002/07/09 00:29:02

  Modified:    src/xdocs/stylesheets docs.vsl templates.vm
  Log:
  Update the doc building fiels to latest velocity, not sure what changed ...
  
  Revision  Changes    Path
  1.6       +40 -9     jakarta-avalon-phoenix/src/xdocs/stylesheets/docs.vsl
  
  Index: docs.vsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/xdocs/stylesheets/docs.vsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- docs.vsl	13 Jun 2002 09:18:03 -0000	1.5
  +++ docs.vsl	9 Jul 2002 07:29:02 -0000	1.6
  @@ -1,18 +1,49 @@
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   
  -#parse( "templates.vm" )
  +#parse ( "templates.vm" )
   
  -<!-- This is a generated file.  Do not edit. -->
  -## start the processing
  -#document()
  -## end the processing
  -
  -#macro (document)
  +#macro(document)
     #header()
  -  #set ($allSections = $root.getChild("body").getChildren("section"))
  -  #foreach ( $section in $allSections )
  +  #set($allSections = $root.getChild("body").getChildren("section"))
  +  #foreach( $section in $allSections )
       #section ($section)
     #end
     #footer()
   #end
   
  +#macro ( subsection $subsection)
  +  <div class="h4">
  +    #if ( $subsection.getAttributeValue("anchor") )
  +      #set ($anchor = $subsection.getAttributeValue("anchor"))
  +    #else
  +      #set ($anchor = $subsection.getAttributeValue("name"))
  +    #end
  +    <h4><a name="$anchor">$subsection.getAttributeValue("name")</a></h4>
  +    #foreach ( $items in $subsection.getChildren() )
  +      #copy($items)
  +    #end
  +  </div>
  +#end
  +
  +#macro (section $section)
  +  <div class="h3">
  +    #if ( $section.getAttributeValue("anchor") )
  +      #set ($anchor = $section.getAttributeValue("anchor"))
  +    #else
  +      #set ($anchor = $section.getAttributeValue("name"))
  +    #end
  +    <h3><a name="$anchor">$section.getAttributeValue("name")</a></h3>
  +    #foreach ( $items in $section.getChildren() )
  +      #if ($items.getName().equals("subsection"))
  +        #subsection ($items)
  +      #else
  +        #copy($items)
  +      #end
  +    #end
  +  </div>
  +#end
  +
  +#parse ( "templates.vm" )
  +
  +<!-- This is a generated file.  Do not edit. -->
  +#document()
  
  
  
  1.7       +1 -1      jakarta-avalon-phoenix/src/xdocs/stylesheets/templates.vm
  
  Index: templates.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/xdocs/stylesheets/templates.vm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- templates.vm	13 Jun 2002 09:24:40 -0000	1.6
  +++ templates.vm	9 Jul 2002 07:29:02 -0000	1.7
  @@ -72,7 +72,7 @@
     </div>
   #end
   
  -#macro ( section $section)
  +#macro (section $section)
     <div class="h3">
       #if ( $section.getAttributeValue("anchor") )
         #set ($anchor = $section.getAttributeValue("anchor"))
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>