incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1186091 - in /incubator/public/trunk: build.xml site-author/index.xml site-author/stylesheets/project-menu.ent site-author/stylesheets/project-menu.xsl site-publish/index.html
Date Wed, 19 Oct 2011 11:02:44 GMT
Author: sebb
Date: Wed Oct 19 11:02:44 2011
New Revision: 1186091

URL: http://svn.apache.org/viewvc?rev=1186091&view=rev
Log:
Add summary list of current projects to main page

Removed:
    incubator/public/trunk/site-author/stylesheets/project-menu.ent
Modified:
    incubator/public/trunk/build.xml
    incubator/public/trunk/site-author/index.xml
    incubator/public/trunk/site-author/stylesheets/project-menu.xsl
    incubator/public/trunk/site-publish/index.html

Modified: incubator/public/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/build.xml?rev=1186091&r1=1186090&r2=1186091&view=diff
==============================================================================
--- incubator/public/trunk/build.xml (original)
+++ incubator/public/trunk/build.xml Wed Oct 19 11:02:44 2011
@@ -36,16 +36,33 @@
         <taskdef name="anakia" classname="org.apache.anakia.AnakiaTask">
             <classpath refid="classpath"/>
         </taskdef>
+        <!-- Always process index (uses ent file which is not part of update check) -->
         <anakia basedir="${docs.src}" destdir="${docs.dest}/"
              extension=".html" style="./site.vsl"
              projectFile="stylesheets/project.xml"
-             excludes="**/stylesheets/** empty.xml podlings.xml **/projects/activemq/** **/projects/servicemix/**"
+             includes="index.xml"
+             lastModifiedCheck="false"
+             templatePath="${docs.src}/stylesheets"
+             velocityPropertiesFile="build.props"/>
+
+        <!-- Always process projects/index (uses ent file which is not part of update
check) -->
+        <anakia basedir="${docs.src}" destdir="${docs.dest}/"
+             extension=".html" style="./site.vsl"
+             projectFile="stylesheets/project.xml"
+             includes="projects/index.xml"
+             lastModifiedCheck="false"
+             templatePath="${docs.src}/stylesheets"
+             velocityPropertiesFile="build.props"/>
+
+        <!-- process everything else -->
+        <anakia basedir="${docs.src}" destdir="${docs.dest}/"
+             extension=".html" style="./site.vsl"
+             projectFile="stylesheets/project.xml"
+             excludes="**/stylesheets/** index.xml projects/index.xml empty.xml podlings.xml
**/projects/activemq/** **/projects/servicemix/**"
              includes="**/*.xml"
              lastModifiedCheck="true"
              templatePath="${docs.src}/stylesheets"
-             velocityPropertiesFile="build.props"
-        >
-        </anakia>
+             velocityPropertiesFile="build.props"/>
 
         <copy todir="${docs.dest}/" filtering="no">
             <fileset dir="${docs.src}/">
@@ -121,7 +138,7 @@
     <target name="generate-menu">
         <xslt
             in="${docs.src}/podlings.xml"
-            out='${docs.src}/stylesheets/project-menu.ent' 
+            out='target/project-menu.ent'
             style='${docs.src}/stylesheets/project-menu.xsl'>
         </xslt>
     </target>

Modified: incubator/public/trunk/site-author/index.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/index.xml?rev=1186091&r1=1186090&r2=1186091&view=diff
==============================================================================
--- incubator/public/trunk/site-author/index.xml [utf-8] (original)
+++ incubator/public/trunk/site-author/index.xml [utf-8] Wed Oct 19 11:02:44 2011
@@ -12,6 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY 
 See the License for the specific language governing permissions and
 limitations under the License.
 -->
+
+<!DOCTYPE project
+[
+<!ENTITY project-menu   SYSTEM "../target/project-menu.ent">
+]>
+
 <document>
   <properties>
     <atom url="http://mail-archives.apache.org/mod_mbox/incubator-general/?format=atom">general@incubator.apache.org
Archives</atom>
@@ -55,6 +61,14 @@ products.</p>
       <p>You can find out <a href="http://www.apache.org/foundation/"
          >more about the ASF</a>.</p>
     </section>
+
+    <section>
+      <title>List of all current Incubator projects</title>
+     <p>
+     &project-menu;
+     </p>
+    </section>
+
     <section>
       <title>Patches welcome!</title>
       <p>Like everything else at the ASF, this website is a joint effort, and

Modified: incubator/public/trunk/site-author/stylesheets/project-menu.xsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/stylesheets/project-menu.xsl?rev=1186091&r1=1186090&r2=1186091&view=diff
==============================================================================
--- incubator/public/trunk/site-author/stylesheets/project-menu.xsl (original)
+++ incubator/public/trunk/site-author/stylesheets/project-menu.xsl Wed Oct 19 11:02:44 2011
@@ -33,20 +33,50 @@
             method='html' 
             indent='no'
             encoding='UTF-8'/>
-            
+
+<xsl:param name="CELLS_PER_LINE" select="6"/>
+
     <xsl:template match='podlings'>
+      <table>
+<xsl:text>
+</xsl:text>
         <xsl:apply-templates select="podling[@status = 'current']">
             <xsl:sort select='@name'/>
         </xsl:apply-templates>
+        <xsl:call-template name="fill-blank-td"/>
+        <xsl:text disable-output-escaping="yes">
+&lt;/tr>
+</xsl:text>
+      </table>
+    </xsl:template>
+    <xsl:template name="fill-blank-td">
+        <xsl:param name="num"><xsl:value-of select="count(podling[@status = 'current'])
mod $CELLS_PER_LINE"/></xsl:param>
+        <xsl:if test="$num &lt; $CELLS_PER_LINE and $num &gt; 0">
+<xsl:text>        <td><xsl:value-of select="$num"/></td>
+</xsl:text>
+            <xsl:call-template name="fill-blank-td">
+                <xsl:with-param name="num">
+                    <xsl:value-of select="$num + 1"/>
+                </xsl:with-param>
+            </xsl:call-template>
+        </xsl:if>
     </xsl:template>
     <xsl:template match='podling'>
+        <xsl:if test="position() mod $CELLS_PER_LINE = 1">
+        <xsl:if test="position() > 1">
+        <xsl:text disable-output-escaping="yes">&lt;/tr>
+</xsl:text>
+        </xsl:if>
+        <xsl:text disable-output-escaping="yes">&lt;tr>
+</xsl:text>
+        </xsl:if>
       <!-- copy original spacing (could be removed) -->
       <xsl:text>      </xsl:text>
-        <li><xsl:element name='a'>
-                <xsl:attribute name='href'><xsl:value-of select="concat('/projects/',
@resource, '.html')"/></xsl:attribute>
+        <td><xsl:element name='a'>
+                <xsl:attribute name='href'><xsl:value-of select="concat('projects/',
@resource, '.html')"/></xsl:attribute>
                 <xsl:value-of select='@name'/>
             </xsl:element>
-        </li>
+        </td>
 <!-- Add EOL after each entry -->
 <xsl:text>
 </xsl:text>

Modified: incubator/public/trunk/site-publish/index.html
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/index.html?rev=1186091&r1=1186090&r2=1186091&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/index.html [utf-8] (original)
+++ incubator/public/trunk/site-publish/index.html [utf-8] Wed Oct 19 11:02:44 2011
@@ -158,6 +158,94 @@ makes it easy for all users, commercial 
 products.</p>
 <p>You can find out <a href="http://www.apache.org/foundation/">more about the
ASF</a>.</p>
 </div>
+        <h2><img src="./images/redarrow.gif" />List of all current Incubator
projects</h2>
+<div class="section-content">
+<p>
+     <table>
+<tr>
+      <td><a href="projects/accumulo.html">Accumulo</a></td>
+      <td><a href="projects/ace.html">Ace</a></td>
+      <td><a href="projects/airavata.html">Airavata</a></td>
+      <td><a href="projects/ambari.html">Ambari</a></td>
+      <td><a href="projects/amber.html">Amber</a></td>
+      <td><a href="projects/any23.html">Any23</a></td>
+</tr>
+<tr>
+      <td><a href="projects/beanvalidation.html">Bean Validation</a></td>
+      <td><a href="projects/bigtop.html">Bigtop</a></td>
+      <td><a href="projects/callback.html">Callback</a></td>
+      <td><a href="projects/celix.html">Celix</a></td>
+      <td><a href="projects/chukwa.html">Chukwa</a></td>
+      <td><a href="projects/clerezza.html">Clerezza</a></td>
+</tr>
+<tr>
+      <td><a href="projects/deft.html">Deft</a></td>
+      <td><a href="projects/deltacloud.html">Deltacloud</a></td>
+      <td><a href="projects/directmemory.html">DirectMemory</a></td>
+      <td><a href="projects/droids.html">Droids</a></td>
+      <td><a href="projects/easyant.html">EasyAnt</a></td>
+      <td><a href="projects/empire-db.html">Empire-db</a></td>
+</tr>
+<tr>
+      <td><a href="projects/etch.html">Etch</a></td>
+      <td><a href="projects/flume.html">Flume</a></td>
+      <td><a href="projects/giraph.html">Giraph</a></td>
+      <td><a href="projects/gora.html">Gora</a></td>
+      <td><a href="projects/hama.html">Hama</a></td>
+      <td><a href="projects/hcatalog.html">HCatalog</a></td>
+</tr>
+<tr>
+      <td><a href="projects/hise.html">HISE</a></td>
+      <td><a href="projects/imperius.html">Imperius</a></td>
+      <td><a href="projects/isis.html">Isis</a></td>
+      <td><a href="projects/jena.html">Jena</a></td>
+      <td><a href="projects/jspwiki.html">JSPWiki</a></td>
+      <td><a href="projects/kafka.html">Kafka</a></td>
+</tr>
+<tr>
+      <td><a href="projects/kalumet.html">Kalumet</a></td>
+      <td><a href="projects/kato.html">Kato</a></td>
+      <td><a href="projects/kitty.html">Kitty</a></td>
+      <td><a href="projects/lucene.net.html">Lucene.Net</a></td>
+      <td><a href="projects/lucy.html">Lucy</a></td>
+      <td><a href="projects/manifoldcf.html">ManifoldCF</a></td>
+</tr>
+<tr>
+      <td><a href="projects/mesos.html">Mesos</a></td>
+      <td><a href="projects/mrunit.html">MRUnit</a></td>
+      <td><a href="projects/npanday.html">NPanday</a></td>
+      <td><a href="projects/nuvem.html">Nuvem</a></td>
+      <td><a href="projects/odftoolkit.html">ODF Toolkit</a></td>
+      <td><a href="projects/olio.html">Olio</a></td>
+</tr>
+<tr>
+      <td><a href="projects/oozie.html">Oozie</a></td>
+      <td><a href="projects/opennlp.html">OpenNLP</a></td>
+      <td><a href="projects/openofficeorg.html">OpenOffice.org</a></td>
+      <td><a href="projects/photark.html">PhotArk</a></td>
+      <td><a href="projects/rat.html">RAT</a></td>
+      <td><a href="projects/rave.html">Rave</a></td>
+</tr>
+<tr>
+      <td><a href="projects/s4.html">S4</a></td>
+      <td><a href="projects/sis.html">SIS</a></td>
+      <td><a href="projects/sqoop.html">Sqoop</a></td>
+      <td><a href="projects/stanbol.html">Stanbol</a></td>
+      <td><a href="projects/stonehenge.html">Stonehenge</a></td>
+      <td><a href="projects/tashi.html">Tashi</a></td>
+</tr>
+<tr>
+      <td><a href="projects/vcl.html">VCL</a></td>
+      <td><a href="projects/vxquery.html">VXQuery</a></td>
+      <td><a href="projects/wave.html">Wave</a></td>
+      <td><a href="projects/wink.html">Wink</a></td>
+      <td><a href="projects/wookie.html">Wookie</a></td>
+      <td><a href="projects/zetacomponents.html">Zeta Components</a></td>
+
+</tr>
+</table>
+     </p>
+</div>
         <h2><img src="./images/redarrow.gif" />Patches welcome!</h2>
 <div class="section-content">
 <p>Like everything else at the ASF, this website is a joint effort, and



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message