Author: jukka Date: Wed Apr 8 16:16:21 2009 New Revision: 763304 URL: http://svn.apache.org/viewvc?rev=763304&view=rev Log: commons: Updated site template Added: jackrabbit/commons/site/src/site/resources/logo.png (with props) jackrabbit/commons/site/src/site/template.vm (with props) Modified: jackrabbit/commons/site/pom.xml jackrabbit/commons/site/src/site/apt/index.apt Modified: jackrabbit/commons/site/pom.xml URL: http://svn.apache.org/viewvc/jackrabbit/commons/site/pom.xml?rev=763304&r1=763303&r2=763304&view=diff ============================================================================== --- jackrabbit/commons/site/pom.xml (original) +++ jackrabbit/commons/site/pom.xml Wed Apr 8 16:16:21 2009 @@ -41,4 +41,19 @@ JCR Commons website + + UTF-8 + + + + + + maven-site-plugin + + + + + + + Modified: jackrabbit/commons/site/src/site/apt/index.apt URL: http://svn.apache.org/viewvc/jackrabbit/commons/site/src/site/apt/index.apt?rev=763304&r1=763303&r2=763304&view=diff ============================================================================== --- jackrabbit/commons/site/src/site/apt/index.apt (original) +++ jackrabbit/commons/site/src/site/apt/index.apt Wed Apr 8 16:16:21 2009 @@ -1,6 +1,6 @@ - ------------------ - Apache JCR Commons - ------------------ + ----------------------------- + Welcome to Apache JCR Commons + ----------------------------- ~~ Licensed to the Apache Software Foundation (ASF) under one or more ~~ contributor license agreements. See the NOTICE file distributed with @@ -17,8 +17,6 @@ ~~ See the License for the specific language governing permissions and ~~ limitations under the License. -Welcome to Apache JCR Commons - The Apache JCR Commons project develops and maintains reusable components that are based on or related to the {{{http://jcp.org/en/jsr/detail?id=170}Content Repository for Java™ Added: jackrabbit/commons/site/src/site/resources/logo.png URL: http://svn.apache.org/viewvc/jackrabbit/commons/site/src/site/resources/logo.png?rev=763304&view=auto ============================================================================== Binary file - no diff available. Propchange: jackrabbit/commons/site/src/site/resources/logo.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: jackrabbit/commons/site/src/site/template.vm URL: http://svn.apache.org/viewvc/jackrabbit/commons/site/src/site/template.vm?rev=763304&view=auto ============================================================================== --- jackrabbit/commons/site/src/site/template.vm (added) +++ jackrabbit/commons/site/src/site/template.vm Wed Apr 8 16:16:21 2009 @@ -0,0 +1,155 @@ + + + + +#macro ( link $href $name ) + #if ( ( $href.toLowerCase().startsWith("http") || $href.toLowerCase().startsWith("https") ) ) + $name + #else + $name + #end +#end + +#macro ( displayTree $display $item ) + #if ( $item && $item.items && $item.items.size() > 0 ) + #foreach( $subitem in $item.items ) + #set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) ) + #set ( $subitemHref = $subitemHref.replaceAll( "\\", "/" ) ) + #if ( $alignedFileName == $subitemHref ) + #set ( $display = true ) + #end + + #displayTree( $display $subitem ) + #end + #end +#end + +#macro ( menuItem $item ) + #set ( $collapse = "none" ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) ) + + #if ( $item && $item.items && $item.items.size() > 0 ) + #if ( $item.collapse == false ) + #set ( $collapse = "expanded" ) + #else + ## By default collapsed + #set ( $collapse = "collapsed" ) + #end + + #set ( $display = false ) + #displayTree( $display $item ) + + #if ( $alignedFileName == $currentItemHref || $display ) + #set ( $collapse = "expanded" ) + #end + #end +
  • + #if ( $item.img ) + #if ( ! ( $item.img.toLowerCase().startsWith("http") || $item.img.toLowerCase().startsWith("https") ) ) + #set ( $src = $PathTool.calculateLink( $item.img, $relativePath ) ) + #set ( $src = $src.replaceAll( "\\", "/" ) ) + + #else + + #end + #end + #if ( $alignedFileName == $currentItemHref ) + $item.name + #else + #link( $currentItemHref $item.name ) + #end + #if ( $item && $item.items && $item.items.size() > 0 ) + #if ( $collapse == "expanded" ) + + #end + #end +
  • +#end + +#macro ( mainMenu $menus ) + #foreach( $menu in $menus ) + #if ( $menu.name ) +

    $menu.name

    + #end + #if ( $menu.items && $menu.items.size() > 0 ) + + #end + #end +#end + + + + $title + + + + +
    + +
    + +
    +

    $title.replaceAll(" - Apache JCR Commons", "")

    + $bodyContent +
    +
    +
    + +
    + + + + + Propchange: jackrabbit/commons/site/src/site/template.vm ------------------------------------------------------------------------------ svn:eol-style = native