openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1333823 - in /openwebbeans: cms-site/ cms-site/trunk/ cms-site/trunk/cgi-bin/ cms-site/trunk/content/ cms-site/trunk/content/images/ cms-site/trunk/content/images/logos/ cms-site/trunk/lib/ cms-site/trunk/templates/ resources/logos/
Date Fri, 04 May 2012 09:27:34 GMT
Author: struberg
Date: Fri May  4 09:27:33 2012
New Revision: 1333823

URL: http://svn.apache.org/viewvc?rev=1333823&view=rev
Log:
initial CMS based site setup

Added:
    openwebbeans/cms-site/
    openwebbeans/cms-site/trunk/
    openwebbeans/cms-site/trunk/cgi-bin/
    openwebbeans/cms-site/trunk/content/
    openwebbeans/cms-site/trunk/content/images/
    openwebbeans/cms-site/trunk/content/images/logos/
      - copied from r1333764, openwebbeans/resources/logos/
    openwebbeans/cms-site/trunk/content/index.mdtext   (with props)
    openwebbeans/cms-site/trunk/lib/
    openwebbeans/cms-site/trunk/lib/path.pm   (with props)
    openwebbeans/cms-site/trunk/lib/view.pm   (with props)
    openwebbeans/cms-site/trunk/templates/
    openwebbeans/cms-site/trunk/templates/banner.mdtext   (with props)
    openwebbeans/cms-site/trunk/templates/navigation.mdtext   (with props)
    openwebbeans/cms-site/trunk/templates/single_narrative.html   (with props)
    openwebbeans/cms-site/trunk/templates/skeleton.html   (with props)
    openwebbeans/cms-site/trunk/templates/standard.html   (with props)
    openwebbeans/cms-site/trunk/templates/standard_markdown.html   (with props)
Removed:
    openwebbeans/resources/logos/

Added: openwebbeans/cms-site/trunk/content/index.mdtext
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/content/index.mdtext?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/content/index.mdtext (added)
+++ openwebbeans/cms-site/trunk/content/index.mdtext Fri May  4 09:27:33 2012
@@ -0,0 +1,29 @@
+Title: Index
+<a name="Index-WelcometotheApacheOpenWebBeansProject"></a>
+## Welcome to the Apache OpenWebBeans project
+
+Apache OpenWebBeans delivers an implementation of the
+[CDI Specification (JSR299)](http://jcp.org/en/jsr/detail?id=299),
+which is TCK compliant and works on Java SE 5 or later.
+
+<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"; type="text/javascript"></script>
+<script src="/resources/blog.js"; type="text/javascript"></script>
+<script type="text/javascript">
+  $(function() {
+    var limit = 5;
+    getBlogEntries("https://cwiki.apache.org/confluence",
+        "OpenWebBeans", limit, $("newsItem-prototype"), $("newsItemList"));
+  }); 
+</script>
+<div id="recentNews" style="display: none;">
+  <a name="Index-RecentNews"></a>
+## Recent News
+
+  <ul id="newsItemList">
+    <li id="newsItem-prototype" style="display: none;">
+      <div class="date" />
+      <div class="title" />
+      <div class="detail" />
+    </li>
+  </ul>
+</div>

Propchange: openwebbeans/cms-site/trunk/content/index.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/lib/path.pm?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/lib/path.pm (added)
+++ openwebbeans/cms-site/trunk/lib/path.pm Fri May  4 09:27:33 2012
@@ -0,0 +1,39 @@
+package path;
+
+# taken from django's url.py
+
+our @patterns = (
+	[qr!\.mdtext$!, normal_page => { template => "standard_markdown.html" }],
+
+#	[qr!/sitemap\.html$!, sitemap => { headers => { title => "Sitemap" }} ],
+
+) ;
+
+# for specifying interdependencies between files
+
+our %dependencies = (
+#    "/sitemap.html" => [ grep s!^content!!, glob "content/*.mdtext" ],
+);
+
+1;
+
+=head1 LICENSE
+
+           Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+
+             http://www.apache.org/licenses/LICENSE-2.0
+
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.
+
+

Propchange: openwebbeans/cms-site/trunk/lib/path.pm
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/lib/view.pm?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/lib/view.pm (added)
+++ openwebbeans/cms-site/trunk/lib/view.pm Fri May  4 09:27:33 2012
@@ -0,0 +1,78 @@
+package view;
+
+# BUILD CONSTRAINT:  all views must return $content, $extension.
+# additional return values (as seen below) are optional.  However,
+# careful use of symlinks and dependency management in path.pm can
+# resolve most issues with this constraint.
+
+use strict;
+use warnings;
+use Dotiac::DTL qw/Template/;
+use Dotiac::DTL::Addon::markup;
+use ASF::Util qw/read_text_file shuffle/;
+use File::Temp qw/tempfile/;
+use LWP::Simple;
+
+push @Dotiac::DTL::TEMPLATE_DIRS, "templates";
+
+# This is most widely used view.  It takes a
+# 'template' argument and a 'path' argument.
+# Assuming the path ends in foo.mdtext, any files
+# like foo.page/bar.mdtext will be parsed and
+# passed to the template in the "bar" (hash)
+# variable.
+
+sub normal_page {
+    my %args = @_;
+    my $file = "content$args{path}";
+    my $template = $args{template};
+    $args{path} =~ s/\.mdtext$/\.html/;
+    $args{breadcrumbs} = breadcrumbs($args{path});
+
+    read_text_file $file, \%args;
+
+    my $page_path = $file;
+    $page_path =~ s/\.[^.]+$/.page/;
+    if (-d $page_path) {
+        for my $f (grep -f, glob "$page_path/*.mdtext") {
+            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+            $args{$1} = {};
+            read_text_file $f, $args{$1};
+        }
+    }
+
+    return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
+}
+
+sub breadcrumbs {
+    my @path = split m!/!, shift;
+    pop @path;
+    my @rv;
+    my $relpath = "";
+    for (@path) {
+        $relpath .= "$_/";
+        $_ ||= "Home";
+        push @rv, qq(<a href="$relpath">\u$_</a>);
+    }
+    return join "&nbsp;&raquo&nbsp;", @rv;
+}
+
+
+=head1 LICENSE
+
+           Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+
+             http://www.apache.org/licenses/LICENSE-2.0
+
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.

Propchange: openwebbeans/cms-site/trunk/lib/view.pm
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/templates/banner.mdtext
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/templates/banner.mdtext?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/templates/banner.mdtext (added)
+++ openwebbeans/cms-site/trunk/templates/banner.mdtext Fri May  4 09:27:33 2012
@@ -0,0 +1,21 @@
+<a name="Banner-Overview"></a>
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+  <tr>
+    <td align="left" nowrap="">
+      <a href="http://openwebbeans.apache.org" title="Apache OpenWebBeans">
+        <img border="0" src="/images/logos/logo.png">
+      </a>
+    </td>
+    <td align="left" class="topbardiv" nowrap="">
+      <a href="/" title="Apache OpenWebBeans">
+        <img border="0" src="/images/logos/logo.png">
+      </a>
+    </td>
+    <td align="right" nowrap="">
+      <a href="http://www.apache.org/" title="The Apache Software Foundation">
+        <img border="0" src="/images/feather-small.gif">
+      </a>
+    </td>
+  </tr> 
+</table>

Propchange: openwebbeans/cms-site/trunk/templates/banner.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/templates/navigation.mdtext
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/templates/navigation.mdtext?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/templates/navigation.mdtext (added)
+++ openwebbeans/cms-site/trunk/templates/navigation.mdtext Fri May  4 09:27:33 2012
@@ -0,0 +1,47 @@
+<a name="Navigation-Overview"></a>
+### Overview
+- [Board Reports](/board-reports/index.html)
+- [License](http://www.apache.org/licenses/LICENSE-2.0.html)
+- [Privacy Policy](/privacy-policy.html)
+
+<a name="Navigation-Community"></a>
+### Community
+ - [Downloads](/downloads.html)
+ - [Documentation](/documentation.html)
+ - [Samples](/samples.html)
+ - [Roadmap](/roadmap.html)
+ - [Found a Bug](/found-a-bug.html)
+ - [Getting Involved](/getting-involved.html)
+ - [People](/people.html)
+ - [Mailing Lists](/mailing-lists.html)
+
+<a name="Navigation-Development"></a>
+### Development
+ - [Source Code](https://svn.apache.org/repos/asf/openwebbeans/trunk)
+ - [Issue Tracker](https://issues.apache.org/jira/browse/OWB)
+ - [Building](/building.html)
+ - [Coding Standards](/coding-standards.html)
+ - [JSR303 TCK](/jsr303-tck.html)
+ - [Release Management](/release-management.html)
+ - [Automated Builds](/automated-builds.html)
+
+<a name="Navigation-Sponsorship"></a>
+### Sponsorship
+ - [Thanks](http://www.apache.org/foundation/thanks.html)
+ - [Sponsoring Apache](http://www.apache.org/foundation/sponsorship.html)
+
+<a name="Navigation-Search"></a>
+### Search
+
+<DIV style="padding: 5px 5px 0px 25px;">
+<FORM action="http://www.google.com/search" method="get" style="font-size:
+10px;">
+  <INPUT name="ie" type="hidden" value="UTF-8"></INPUT>
+  <INPUT name="oe" type="hidden" value="UTF-8"></INPUT>
+  <INPUT maxlength="255" name="q" size="15" type="text" value=""></INPUT>
+  <INPUT name="btnG" type="submit" value="Google Search"></INPUT>
+  <INPUT name="domains" type="hidden" value="openwebbeans.apache.org"></INPUT>
+  <INPUT name="sitesearch" type="hidden" value="openwebbeans.apache.org"></INPUT>
+</FORM>
+</DIV>
+

Propchange: openwebbeans/cms-site/trunk/templates/navigation.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/templates/single_narrative.html
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/templates/single_narrative.html?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/templates/single_narrative.html (added)
+++ openwebbeans/cms-site/trunk/templates/single_narrative.html Fri May  4 09:27:33 2012
@@ -0,0 +1 @@
+{% extends "skeleton.html" %}

Propchange: openwebbeans/cms-site/trunk/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/templates/skeleton.html?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/templates/skeleton.html (added)
+++ openwebbeans/cms-site/trunk/templates/skeleton.html Fri May  4 09:27:33 2012
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <title>{% block title %}{{ headers.title }}{% endblock %}</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <meta property="og:image" content="http://www.apache.org/images/asf_logo.gif" />
+
+    <link rel="stylesheet" type="text/css" media="screen" href="http://www.apache.org/css/style.css">
+    <link rel="stylesheet" type="text/css" media="screen" href="http://www.apache.org/css/code.css">
+
+    </style>
+
+    {% if headers.atom %}
+      <link rel="alternate" href="{{ headers.atom.url }}"
+            type="application/atom+xml" title="{{ headers.atom.title }}" />
+    {% endif %}
+
+    {% if headers.base %}<base href="{{ headers.base }}" />{% endif %}
+    {% if headers.notice %}<!-- {{ headers.notice }} -->{% endif %}
+  </head>
+
+  <body>
+    <div id="page" class="container_16">
+      <div id="header" class="grid_8">
+        <img src="http://www.apache.org/images/feather-small.gif" alt="The Apache Software
Foundation">
+        <h1>The Apache Software Foundation</h1>
+        <h2>{% block tagline %}{{ headers.title }}{% endblock %}</h2>
+      </div>
+      <div id="nav" class="grid_8">
+        <ul>
+          <!-- <li><a href="/" title="Welcome!">Home</a></li>
-->
+          <li><a href="http://www.apache.org/foundation/" title="The Foundation">Foundation</a></li>
+          <li><a href="http://projects.apache.org" title="The Projects">Projects</a></li>
+          <li><a href="http://people.apache.org" title="The People">People</a></li>
+          <li><a href="http://www.apache.org/foundation/getinvolved.html" title="Get
Involved">Get Involved</a></li>
+          <li><a href="http://www.apache.org/dyn/closer.cgi" title="Download">Download</a></li>
+          <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Support
Apache">Support Apache</a></li>
+        </ul>
+        <p>{{ breadcrumbs|safe }}</p>
+        <form name="search" id="search" action="http://www.google.com/search" method="get">
+          <input value="*.apache.org" name="sitesearch" type="hidden"/>
+          <input type="text" name="q" id="query">
+          <input type="submit" id="submit" value="Search">
+        </form>
+      </div>
+      <div class="clear"></div>
+      {% block content %}<div id="content" class="grid_16"><div class="section-content">{{
content|markdown }}</div></div>{% endblock %}
+      <div class="clear"></div>
+    </div>
+
+    <div id="copyright" class="container_16">
+      <p>Copyright &#169; 2011 The Apache Software Foundation, Licensed under the
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/>Apache
and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+    </div>
+  </body>
+</html>

Propchange: openwebbeans/cms-site/trunk/templates/skeleton.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/templates/standard.html
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/templates/standard.html?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/templates/standard.html (added)
+++ openwebbeans/cms-site/trunk/templates/standard.html Fri May  4 09:27:33 2012
@@ -0,0 +1,144 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License. 
+-->
+<html>
+<head>
+  <META http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+  <link type="text/css" rel="stylesheet" href="/resources/site.css";></link>
+  <link type="text/css" rel="stylesheet" href="/resources/code.css";></link>
+  <script src="/resources/space.js"; type="text/javascript"></script>
+  <link rel="SHORTCUT ICON" href="/images/favicon.ico">   
+  <LINK rel="schema.DC" href="http://purl.org/DC/elements/1.0/">
+  <META name="Description" content="Apache OpenWebBeans -- {% block title %}{% endblock
%}" />
+  <META name="Keywords" content="Apache Bean Validation JSR-303 JavaEE6 " />
+  <META name="Owner" content="dev@openwebbeans.apache.org" />
+  <META name="Robots" content="index, follow" />
+  <META name="Security" content="Public" />
+  <META name="Source" content="wiki template" />
+  <META name="DC.Date" scheme="iso8601" content="2010-05-21" />
+  <META name="DC.Language" scheme="rfc1766" content="en" />
+  <META name="DC.Rights" content="Copyright © 2010, The Apache Software Foundation" />
+  <META http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html"
l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r
(n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))'/>
+  <title>
+  Apache OpenWebBeans
+  </title>
+</head>
+<body>
+
+<table width="100%" cellpadding="0" cellspacing="0">
+  <tr width="100%">
+    <td id="cell-0-0" colspan="2">&nbsp;</td>
+    <td id="cell-0-1">&nbsp;</td>
+    <td id="cell-0-2" colspan="2">&nbsp;</td>
+  </tr>
+  <tr width="100%">
+    <td id="cell-1-0">&nbsp;</td>
+    <td id="cell-1-1">&nbsp;</td>
+    <td id="cell-1-2">
+      <div style="padding: 5px;">
+        <div id="banner">
+          <!-- Banner -->
+{% filter markdown %}{% include "banner.mdtext" %}{% endfilter %}
+          <!-- Banner -->
+        </div>
+      </div>
+      <!--
+      <div id="top-menu">
+        <table border="0" cellpadding="1" cellspacing="0" width="100%">
+          <tr>
+            <td>
+              <div align="left">
+                {{ breadcrumbs|safe }}
+              </div>
+            </td>
+            <td>
+              <div align="right">
+$content
+              </div>
+            </td>
+          </tr>
+        </table>
+      </div>
+      -->
+    </td>
+    <td id="cell-1-3">&nbsp;</td>
+    <td id="cell-1-4">&nbsp;</td>
+  </tr>
+  <tr width="100%">
+    <td id="cell-2-0" colspan="2">&nbsp;</td>
+    <td id="cell-2-1">
+      <table>
+        <tr height="100%" valign="top">
+          <td height="100%">
+            <div id="wrapper-menu-page-right">
+              <div id="wrapper-menu-page-top">
+                <div id="wrapper-menu-page-bottom">
+                  <div id="menu-page">
+                    <!-- NavigationBar -->
+{% filter markdown %}{% include "navigation.mdtext" %}{% endfilter %}
+                    <!-- NavigationBar -->
+              </div>
+            </div>
+          </div>
+          </div>
+         </td>
+         <td height="100%">
+           <!-- Content -->
+           <div id="OwbContent_{% block title %}{% endblock %}" class="wiki-content">{%
block content %}{% endblock %}</div>
+           <!-- Content -->
+         </td>
+        </tr>
+      </table>
+   </td>
+   <td id="cell-2-2" colspan="2">&nbsp;</td>
+  </tr>
+  <tr width="100%">
+   <td id="cell-3-0">&nbsp;</td>
+   <td id="cell-3-1">&nbsp;</td>
+   <td id="cell-3-2">
+     <div id="footer">
+       <!-- Footer -->
+       <div id="site-footer">
+       </div>
+       <!-- Footer -->
+     </div>
+   </td>
+   <td id="cell-3-3">&nbsp;</td>
+   <td id="cell-3-4">&nbsp;</td>
+  </tr>
+  <tr width="100%">
+    <td id="cell-4-0" colspan="2">&nbsp;</td>
+    <td id="cell-4-1">
+      <div id="footer-legal">
+Copyright (C) 2010-2012 The Apache Software Foundation. Licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache
License 2.0</a>.<br />
+Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br
/>
+Other names may be trademarks of their respective owners.
+      </div>
+    </td>
+    <td id="cell-4-2" colspan="2">&nbsp;</td>
+  </tr>
+  <tr width="100%">
+    <td id="cell-4-0" colspan="2">&nbsp;</td>
+    <td id="cell-4-1">&nbsp;</td>
+    <td id="cell-4-2" colspan="2">&nbsp;</td>
+  </tr>
+</table>
+</body>
+</html>

Propchange: openwebbeans/cms-site/trunk/templates/standard.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/cms-site/trunk/templates/standard_markdown.html
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/templates/standard_markdown.html?rev=1333823&view=auto
==============================================================================
--- openwebbeans/cms-site/trunk/templates/standard_markdown.html (added)
+++ openwebbeans/cms-site/trunk/templates/standard_markdown.html Fri May  4 09:27:33 2012
@@ -0,0 +1,3 @@
+{% extends "standard.html" %}
+{% block title %}{{ headers.title }}{% endblock %}
+{% block content %}{{ content|markdown }}{% endblock %}

Propchange: openwebbeans/cms-site/trunk/templates/standard_markdown.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message