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

cvs commit: jakarta-avalon-excalibur/xmlbundle/src/xdocs/stylesheets docs.vsl

leif        2002/08/08 00:42:27

  Modified:    xmlbundle build.xml
  Added:       xmlbundle/src/xdocs/stylesheets docs.vsl
  Log:
  Reenable Anakia docs using the docs.vsl file I stole from assembly.
  
  Revision  Changes    Path
  1.32      +0 -3      jakarta-avalon-excalibur/xmlbundle/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/xmlbundle/build.xml,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- build.xml	8 Aug 2002 07:17:29 -0000	1.31
  +++ build.xml	8 Aug 2002 07:42:27 -0000	1.32
  @@ -363,8 +363,6 @@
       </target>
   
       <target name="docs" depends="anakia-check" description="Generate documentation and website">
  -        <echo message="Anakia docs being skipped because docs.vsl does not exist and build was breaking."/>
  -        <!-- Skip Anakia docs until they  work
           <taskdef name="anakia"
               classname="org.apache.velocity.anakia.AnakiaTask">
               <classpath refid="tools.class.path"/>
  @@ -378,7 +376,6 @@
               excludes="menu.xml"
               velocitypropertiesfile="../site/src/stylesheets/velocity.properties"
               />
  -        -->
           
           <copy todir="${docs.dir}" filtering="off">
               <fileset dir="../site/src" includes="css/*.css" />
  
  
  
  1.1                  jakarta-avalon-excalibur/xmlbundle/src/xdocs/stylesheets/docs.vsl
  
  Index: docs.vsl
  ===================================================================
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  
  #parse ( "templates.vm" )
  
  #macro(document)
    #header()
    #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()
  
  
  

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