harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r429025 - /incubator/harmony/standard/site/xdocs/stylesheets/site.vsl
Date Sat, 05 Aug 2006 18:25:21 GMT
Author: geirm
Date: Sat Aug  5 11:25:20 2006
New Revision: 429025

URL: http://svn.apache.org/viewvc?rev=429025&view=rev
Log:
tweaks to : 

1) support being able to have a stylesheet (although
we need to revisit this bit o hackery and get a 
site-wide style

2) add an easy way to include docs written in write-once
formats like html...



Modified:
    incubator/harmony/standard/site/xdocs/stylesheets/site.vsl

Modified: incubator/harmony/standard/site/xdocs/stylesheets/site.vsl
URL: http://svn.apache.org/viewvc/incubator/harmony/standard/site/xdocs/stylesheets/site.vsl?rev=429025&r1=429024&r2=429025&view=diff
==============================================================================
--- incubator/harmony/standard/site/xdocs/stylesheets/site.vsl (original)
+++ incubator/harmony/standard/site/xdocs/stylesheets/site.vsl Sat Aug  5 11:25:20 2006
@@ -169,6 +169,13 @@
     </table>
 #end
 
+
+#macro (docinclude $name)
+<div>
+#include($name)
+</div>
+#end
+
 #macro ( section $section)
     <table border="0" cellspacing="0" cellpadding="2" width="100%">
       <tr><td bgcolor="$bannerbg">
@@ -268,6 +275,12 @@
             #end
 
             <title>$project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText()</title>
+
+            #set ($links = $root.getChild("properties").getChildren("link"))
+            #foreach ( $link in $links )
+            $link
+            #end
+            
         </head>
 
         <body bgcolor="$bodybg" text="$bodyfg" link="$bodylink">        
@@ -309,6 +322,11 @@
                     #set ($allSections = $root.getChild("body").getChildren("section"))
                     #foreach ( $section in $allSections )
                         #section ($section)
+                    #end
+
+                    #set ($allInclude = $root.getChild("body").getChildren("docinclude"))
+                    #foreach($inc in $allInclude)
+                        #docinclude($inc.getAttributeValue("name"))
                     #end
                     </td>
                 </tr>



Mime
View raw message