You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ge...@apache.org on 2006/08/05 20:25:21 UTC

svn commit: r429025 - /incubator/harmony/standard/site/xdocs/stylesheets/site.vsl

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>