You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2012/11/10 19:07:16 UTC

svn commit: r1407862 - in /isis/site/trunk: content/documentation.md lib/path.pm templates/basic.html templates/doc.html

Author: danhaywood
Date: Sat Nov 10 18:07:13 2012
New Revision: 1407862

URL: http://svn.apache.org/viewvc?rev=1407862&view=rev
Log:
copying some resources from openejb, experimenting

Added:
    isis/site/trunk/content/documentation.md
    isis/site/trunk/templates/basic.html
    isis/site/trunk/templates/doc.html
Modified:
    isis/site/trunk/lib/path.pm

Added: isis/site/trunk/content/documentation.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/documentation.md?rev=1407862&view=auto
==============================================================================
--- isis/site/trunk/content/documentation.md (added)
+++ isis/site/trunk/content/documentation.md Sat Nov 10 18:07:13 2012
@@ -0,0 +1,104 @@
+Title: Index
+
+See also the [examples page](examples-trunk/index.html) for downloadable, executable and code-focused view of Java EE and TomEE.
+
+{row
+
+{span-one-third
+### General Guide 
+- [Using TomEE with Eclipse](tomee-and-eclipse.html)
+- [WTP and TomEE logging](tomee-logging-in-eclipse.html)
+- [Comparison: OpenEJB,TomEE,TomEE+](comparison.html)
+- [TomEE Directory structure](tomee-directory-structure.html)
+- [TomEE and Configurations](Configuring-in-tomee.html)
+- [TomEE and Security](tomee-and-security.html)
+- [Deploying in TomEE](deploying-in-tomee.html)
+- [The 'tomee' webapp](tomee-webapp.html)
+}
+
+{span-one-third
+###  Configuration
+- [System Properties](system-properties.html)
+- [Deployments](deployments.html)
+- [Containers and Resources](containers-and-resources.html)
+- [JMS Resources and MDB Container](jms-resources-and-mdb-container.html)
+- [Configuring DataSources](configuring-datasources.html)
+- [Configuring JavaMail](configuring-javamail.html)
+- [Security](security.html)
+- [EJB Clients](clients.html)
+- [EJB over SSL](ejb-over-ssl.html)
+- [JNDI Names](jndi-names.html)
+- [Changing JMS implementations](changing-jms-implementations.html)
+- [Changing JPA to Hibernate](tomee-and-hibernate.html)
+}
+
+{span-one-third
+###  Testing Techniques
+- [Application discovery via the classpath](application-discovery-via-the-classpath.html)
+- [Embedded Configuration](embedded-configuration.html)
+- [Configuring DataSources in Tests](configuring-datasources-in-tests.html)
+- [Configuring PersistenceUnits in Tests](configuring-persistenceunits-in-tests.html)
+- [Configuring Containers in Tests](configuring-containers-in-tests.html)
+- [Configuring Logging in Tests](configuring-logging-in-tests.html)
+- [Alternate Descriptors](alternate-descriptors.html)
+- [Unit Testing Transactions](unit-testing-transactions.html)
+- [TestCase with TestBean inner-class](testcase-with-testbean-inner-class.html)
+- [TestCase Injection (@LocalClient)](local-client-injection.html)
+}
+
+
+
+}
+
+
+{row
+
+{span-one-third
+### Discovery and Failover
+- [Overview](ejb-failover.html)
+- [Multicast Discovery (UDP)](multicast-discovery.html)
+- [Multipoint Discovery (TCP)](multipoint-discovery.html)
+- [Multipoint Considerations](multipoint-considerations.html)
+- [Multipoint Recommendations](multipoint-recommendations.html)
+- [Logging Events](failover-logging.html)
+}
+
+
+
+
+
+{span-one-third
+
+### OpenEJB Standalone Server
+- [Understanding the Directory Layout](understanding-the-directory-layout.html)
+- [Startup](startup.html)
+- [Deploy Tool](deploy-tool.html)
+- [Properties Tool](properties-tool.html)
+}
+
+{span-one-third
+###  Spring
+- [Spring and OpenEJB 3.0](spring-and-openejb-3.0.html)
+- [Spring and OpenEJB 3.1 and later](spring.html)
+- [Spring, EJB and JPA example](spring-ejb-and-jpa.html)
+}
+
+
+}
+
+
+{row
+
+{span-one-third
+### Arquillian
+- [Getting started](arquillian-getting-started.html)
+- [Available adapters](arquillian-available-adapters.html) 
+}
+
+
+{span-one-third
+### TomEE Maven Plugin
+- [Getting started](tomee-mp-getting-started.html)
+}
+
+}
\ No newline at end of file

Modified: isis/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/isis/site/trunk/lib/path.pm?rev=1407862&r1=1407861&r2=1407862&view=diff
==============================================================================
--- isis/site/trunk/lib/path.pm (original)
+++ isis/site/trunk/lib/path.pm Sat Nov 10 18:07:13 2012
@@ -3,8 +3,10 @@ package path;
 # taken from django's url.py
 
 our @patterns = (
-	[qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
+    # from openejb
+    [qr!\.md(text)?$!, basic => { template => "doc.html" } ],
 
+	[qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
 	[qr!/sitemap\.html$!, sitemap => { headers => { title => "Sitemap" }} ],
 
 ) ;

Added: isis/site/trunk/templates/basic.html
URL: http://svn.apache.org/viewvc/isis/site/trunk/templates/basic.html?rev=1407862&view=auto
==============================================================================
--- isis/site/trunk/templates/basic.html (added)
+++ isis/site/trunk/templates/basic.html Sat Nov 10 18:07:13 2012
@@ -0,0 +1,171 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+
+    <meta charset="utf-8">
+      <title>{% block title %}{{ headers.title }}{% endblock %}</title>
+    <meta name="description" content="">
+    <meta name="author" content="">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+    <!--[if lt IE 9]>
+      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+
+    <!-- Le styles -->
+    <link href="{{base}}bootstrap.css" rel="stylesheet">
+    <link href="{{base}}prettify.css" rel="stylesheet">
+    <link href="{{base}}bootstrap-mods.css" rel="stylesheet">
+
+    <style type="text/css">
+        body {
+          padding-top: 60px;
+        }
+        .sprite {
+            display: inline-block;
+            height: 20px;
+            margin: 0 auto 4px;
+            outline: medium none;
+            text-indent: -999em;
+            width: 24px;
+            background-image: url('{{base}}images/sprites.png');
+            background-repeat: no-repeat;
+            overflow: hidden;
+            cursor: pointer;
+        }
+        .edit-page {
+            display: inline-block;
+            height: 20px;
+            margin: 0 auto 4px;
+            outline: medium none;
+            text-indent: -999em;
+            width: 24px;
+            background-image: url('{{base}}images/edit.png');
+            background-repeat: no-repeat;
+            overflow: hidden;
+            cursor: pointer;
+        }
+        .fb-share {
+            background-position: 0px -40px;
+        }
+        .gp-share {
+            background-position: 0px 0px;
+        }
+        .tw-share {
+            background-position: 0px -80px;
+        }
+    </style>
+    <script type="text/javascript">
+      function fbshare () {
+          window.open(
+                  "http://www.facebook.com/sharer/sharer.php?u="+document.URL,
+                  'Share on Facebook',
+                  'width=640,height=426');
+      };
+      function gpshare () {
+          window.open(
+                  "https://plus.google.com/share?url="+document.URL,
+                  'Share on Google+',
+                  'width=584,height=385');
+      };
+      function twshare () {
+          window.open(
+                  "https://twitter.com/intent/tweet?url="+document.URL+"&text={{ headers.title }}",
+                  'Share on Twitter',
+                  'width=800,height=526');
+      };
+    </script>
+
+    <!-- Le fav and touch icons -->
+    <link rel="shortcut icon" href="{{base}}images/favicon.ico">
+    <link rel="apple-touch-icon" href="{{base}}images/apple-touch-icon.png">
+    <link rel="apple-touch-icon" sizes="72x72" href="{{base}}images/apple-touch-icon-72x72.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="{{base}}images/apple-touch-icon-114x114.png">
+
+    <script src="{{base}}javascript/prettify.js" type="text/javascript"></script>
+    <script src="{{base}}javascript/jquery-latest.js"></script>
+    <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
+    <script src="{{base}}javascript/common.js"></script>
+    <script src="{{base}}javascript/prettyprint.js"></script>
+
+    <script type="text/javascript">
+
+      var _gaq = _gaq || [];
+      _gaq.push(['_setAccount', 'UA-2717626-1']);
+      _gaq.push(['_setDomainName', 'apache.org']);
+      _gaq.push(['_trackPageview']);
+
+      (function() {
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+      })();
+
+    </script>
+
+
+  </head>
+
+  <body>
+
+    <div class="topbar">
+      <div class="fill">
+        <div class="container">
+          <a class="brand" href="{{base}}index.html">Apache TomEE</a>
+          <ul class="nav">
+            <li><a href="{{base}}index.html">Home</a></li>
+            <li><a href="{{base}}downloads.html">Downloads</a></li>
+            <li><a href="{{base}}documentation.html">Documentation</a></li>
+            <li><a href="{{base}}support.html">Support</a></li>
+          </ul>
+
+            <!-- Google CSE Search Box Begins  -->
+            <FORM class="pull-right" id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse">
+                <INPUT type="hidden" name="cx" value="010475492895890475512:_t4iqjrgx90">
+                <INPUT type="hidden" name="cof" value="FORID:0">
+                <INPUT name="q" type="text" placeholder="Search">
+            </FORM>
+            <!--<SCRIPT type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>-->
+            <!-- Google CSE Search Box Ends -->
+        </div>
+      </div>
+    </div>
+
+    <div class="container">
+    {% block content %}{{ content|markdown }}{% endblock %}
+
+        <div id="edit" class="modal hide fade in" style="display: none; ">
+            <div class="modal-header">
+                <a class="close" data-dismiss="modal">x</a>
+
+                <h3>Thank you for contributing to the documention!</h3>
+            </div>
+            <div class="modal-body">
+                <h4>Any help with the documentation is greatly appreciated.</h4>
+                <p>All edits are reviewed before going live, so feel free to do much more than fix typos or links.  If you see a page that could benefit from an entire rewrite, we'd be thrilled to review it.  Don't be surprised if we like it so much we ask you for help with other pages :)</p>
+                <small>NOTICE: unless indicated otherwise on the pages in question, all editable content available from apache.org is presumed to be licensed under the Apache License (AL) version 2.0 and hence all submissions to apache.org treated as formal Contributions under the license terms.</small>
+                <!--[if gt IE 6]>
+                <h4>Internet Explorer Users</h4>
+                <p>If you are not an Apache committer, click the Yes link and enter a <i>anonymous</i> for the username and leave the password empty</p>
+                <![endif]-->
+
+            </div>
+            <div class="modal-footer">
+                Do you have an Apache ID?
+                <a href="javascript:void(location.href='https://cms.apache.org/redirect?uri='+escape(location.href))" class="btn">Yes</a>
+                <a href="javascript:void(location.href='https://anonymous:@cms.apache.org/redirect?uri='+escape(location.href))" class="btn">No</a>
+            </div>
+        </div>
+        <script src="{{base}}javascript/bootstrap-modal.js"></script>
+
+      <footer>
+        <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
+        Apache and the Apache feather logo are trademarks of The Apache Software Foundation.
+        </p>
+      </footer>
+
+    </div> <!-- /container -->
+
+  </body>
+</html>

Added: isis/site/trunk/templates/doc.html
URL: http://svn.apache.org/viewvc/isis/site/trunk/templates/doc.html?rev=1407862&view=auto
==============================================================================
--- isis/site/trunk/templates/doc.html (added)
+++ isis/site/trunk/templates/doc.html Sat Nov 10 18:07:13 2012
@@ -0,0 +1,20 @@
+{% extends "basic.html" %}
+
+{% block content %}
+
+<div class="page-header">
+<small>{{ breadcrumbs|safe }}</small><br>
+<h1>{{ headers.title }}
+
+    <div style="float: right; position: relative; bottom: -10px; ">
+        <a onclick="javascript:gpshare()" class="gp-share sprite" title="share on Google+">share [gp]</a>
+        <a onclick="javascript:fbshare()" class="fb-share sprite" title="share on Facebook">share [fb]</a>
+        <a onclick="javascript:twshare()" class="tw-share sprite" title="share on Twitter">share [tw]</a>
+        <a data-toggle="modal" href="#edit" class="edit-page" title="Contribute to this Page">contribute</a>
+    </div>
+</h1>
+</div>
+
+{{ content|markdown }}
+
+{% endblock %}