Repository: tomee-site-generator
Updated Branches:
  refs/heads/master [created] 61cae98ed


http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/footer.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/footer.gsp 
b/src/main/jbake/templates/footer.gsp
new file mode 100755
index 0000000..2c24dc9
--- /dev/null
+++ b/src/main/jbake/templates/footer.gsp
@@ -0,0 +1,80 @@
+<footer>
+               <div class="container">
+                       <div class="row">
+                               <div class="col-sm-6 text-center-mobile">
+                                       <h3 class="white">Apache TomEE the 
little great server.</h3>
+                                       <h5 class="light regular 
light-white">"A good application in a good server"</h5>
+                                       <ul class="social-footer">
+                                               <li><a 
href="https://fr-fr.facebook.com/ApacheTomEE/";><i class="fa 
fa-facebook"></i></a></li>
+                                               <li><a 
href="https://twitter.com/apachetomee";><i class="fa fa-twitter"></i></a></li>
+                                               <li><a 
href="https://plus.google.com/communities/105208241852045684449";><i class="fa 
fa-google-plus"></i></a></li>
+                                       </ul>
+                               </div>
+                               <div class="col-sm-6 text-center-mobile">
+                                       <div class="row opening-hours">
+                                               <div class="col-sm-3 
text-center-mobile">
+                                                       <h5><a href="<%if 
(content.rootpath) {%>${content.rootpath}<% } else { %><% }%>admin/index.html" 
class="white">Administration</a></h5>
+                                                       <ul 
class="list-unstyled">
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>admin/cluster/index.html" class="regular light-white">Cluster</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>admin/configuration/index.html" class="regular 
light-white">Configuration</a></li>
+                                                       </ul>
+                                               </div>
+                                               <div class="col-sm-3 
text-center-mobile">
+                                                       <h5><a href="<%if 
(content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>developer/index.html" class="white">Developer</a></h5>
+                                                       <ul 
class="list-unstyled">
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>developer/classloading/index.html" class="regular 
light-white">Classloading</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>developer/ide/index.html" class="regular light-white">IDE</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>developer/testing/index.html" class="regular light-white">Testing</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>developer/tools/index.html" class="regular light-white">Tools</a></li>
+                                                       </ul>
+                                               </div>
+                                               <div class="col-sm-3 
text-center-mobile">
+                                                       <h5><a href="<%if 
(content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>advanced/index.html" class="white">Advanced</a></h5>
+                                                       <ul 
class="list-unstyled">
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>advanced/applicationcomposer/index.html" class="regular 
light-white">Application Composer</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>advanced/setup/index.html" class="regular light-white">Setup</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>advanced/shading/index.html" class="regular light-white">Shading</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>advanced/tomee-embedded/index.html" class="regular light-white">TomEE 
Embedded</a></li>
+                                                       </ul>
+                                               </div>
+                                               <div class="col-sm-3 
text-center-mobile">
+                                                       <h5><a href="<%if 
(content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>community/index.html" class="white">Community</a></h5>
+                                                       <ul 
class="list-unstyled">
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>community/contributors.html" class="regular 
light-white">Contributors</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>community/social.html" class="regular light-white">Social</a></li>
+                                                               <li><a 
href="<%if (content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>community/sources.html" class="regular light-white">Sources</a></li>
+                                                       </ul>
+                                               </div>
+                                       </div>
+                               </div>
+                       </div>
+                       <div class="row bottom-footer text-center-mobile">
+                               <div class="col-sm-12 light-white">
+                                       <p>Copyright &copy; 1999-2016 The 
Apache Software Foundation, Licensed under the Apache License, Version 2.0. 
Apache TomEE, TomEE, Apache, the Apache feather logo, and the Apache TomEE 
project logo are trademarks of The Apache Software Foundation. All other marks 
mentioned may be trademarks or registered trademarks of their respective 
owners.</p>
+                               </div>
+                       </div>
+               </div>
+       </footer>
+       <!-- Holder for mobile navigation -->
+       <div class="mobile-nav">
+        <ul>
+          <li><a hef="<%if (content.rootpath) {%>${content.rootpath}<% } else 
{ %><% }%>admin/index.html">Administrators</a>
+          <li><a hef="<%if (content.rootpath) {%>${content.rootpath}<% } else 
{ %><% }%>developer/index.html">Developers</a>
+          <li><a hef="<%if (content.rootpath) {%>${content.rootpath}<% } else 
{ %><% }%>advanced/index.html">Advanced</a>
+          <li><a hef="<%if (content.rootpath) {%>${content.rootpath}<% } else 
{ %><% }%>community/index.html">Community</a>
+        </ul>
+               <a href="#" class="close-link"><i class="arrow_up"></i></a>
+       </div>
+       <!-- Scripts -->
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/jquery-1.11.1.min.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/owl.carousel.min.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/bootstrap.min.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/wow.min.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/typewriter.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/jquery.onepagenav.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/tree.jquery.js"></script>
+       <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/highlight.pack.js"></script>
+    <script src="<%if (content.rootpath) {%>${content.rootpath}<% } else { 
%><% }%>js/main.js"></script>
+               </body>
+
+</html>

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/header.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/header.gsp 
b/src/main/jbake/templates/header.gsp
new file mode 100755
index 0000000..649d759
--- /dev/null
+++ b/src/main/jbake/templates/header.gsp
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+       <meta charset="UTF-8">
+       <meta http-equiv="X-UA-Compatible" content="IE=edge">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>Apache TomEE</title>
+       <meta name="description" content="Apache TomEE is a light JavaEE server 
with a lot tooling" />
+       <meta name="keywords" 
content="tomee,asf,apache,javaee,jee,shade,embedded,test,junit,applicationcomposer,maven,arquillian"
 />
+       <meta name="author" content="Luka Cvetinovic for Codrops" />
+       <link rel="icon" href="<%if (content.rootpath) {%>${content.rootpath}<% 
} else { %><% }%>favicon.ico">
+       <link rel="icon"  type="image/png" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>favicon.png">
+       <meta name="msapplication-TileColor" content="#80287a">
+       <meta name="theme-color" content="#80287a">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/normalize.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/bootstrap.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/owl.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/animate.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% 
}%>fonts/font-awesome-4.1.0/css/font-awesome.min.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>fonts/eleganticons/et-icons.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/jqtree.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/idea.css">
+       <link rel="stylesheet" type="text/css" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>css/cardio.css">
+
+       <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="preloader">
+               <img src="<%if (content.rootpath) {%>${content.rootpath}<% } 
else { %><% }%>img/loader.gif" alt="Preloader image">
+       </div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/index.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/index.gsp 
b/src/main/jbake/templates/index.gsp
new file mode 100755
index 0000000..3933987
--- /dev/null
+++ b/src/main/jbake/templates/index.gsp
@@ -0,0 +1,57 @@
+<%include "header.gsp"%>
+       <%include "menu.gsp"%>
+  <div id="main-block">
+    <header id="intro">
+        <div class="container">
+            <div class="table">
+                <div class="header-text">
+                    <div class="row">
+                        <div class="col-md-12 text-center index-title">
+                            Apache TomEE
+                        </div>
+                        <div class="col-md-12 text-center">
+                            <h2 class="white typed">The Embedded or Remote EE 
Application Server</h2>
+                            <span class="typed-cursor">|</span>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </header>
+
+    <section>
+               <div class="cut cut-top" style="border-right-width: 
1899px;"></div>
+               <div class="container">
+                       <div class="row intro-tables animated fadeInUp" 
style="opacity: 0;">
+                               <div class="col-md-4">
+                                   <div class="intro-table intro-table1 
intro-table-hover1 intro-table-hover">
+                        <h5 class="white heading hide-hover">TomEE for 
administrators</h5>
+                        <div class="bottom">
+                            <h4 class="white heading small-heading no-margin 
regular">I'm an admin</h4>
+                            <a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>admin/index.html" class="btn 
btn-white-fill expand">Learn more...</a>
+                        </div>
+                    </div>
+                               </div>
+                               <div class="col-md-4">
+                                       <div class="intro-table intro-table2 
intro-table-hover2 intro-table-hover">
+                                               <h5 class="white heading 
hide-hover">TomEE for developers</h5>
+                                               <div class="bottom">
+                                                       <h4 class="white 
heading small-heading no-margin regular">I'm a developer</h4>
+                                                       <a href="<%if 
(content.rootpath) {%>${content.rootpath}<% } else { %><% 
}%>developer/index.html" class="btn btn-white-fill expand">Learn more...</a>
+                                               </div>
+                                       </div>
+                               </div>
+                               <div class="col-md-4">
+                    <div class="intro-table intro-table3 intro-table-hover3 
intro-table-hover">
+                        <h5 class="white heading hide-hover">Advanced 
usages</h5>
+                        <div class="bottom">
+                            <h4 class="white heading small-heading no-margin 
regular">Too easy, let's go further</h4>
+                            <a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>advanced/index.html" class="btn 
btn-white-fill expand">Learn more...</a>
+                        </div>
+                    </div>
+                               </div>
+                       </div>
+               </div>
+       </section>
+  </div>
+<%include "footer.gsp"%>

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/menu.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/menu.gsp 
b/src/main/jbake/templates/menu.gsp
new file mode 100755
index 0000000..0fe2ae3
--- /dev/null
+++ b/src/main/jbake/templates/menu.gsp
@@ -0,0 +1,42 @@
+    <nav class="navbar">
+               <div class="container">
+                       <!-- Brand and toggle get grouped for better mobile 
display -->
+                       <div class="navbar-header">
+                               <button type="button" class="navbar-toggle 
collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+                                       <span class="sr-only">Toggle 
navigation</span>
+                                       <span class="icon-bar"></span>
+                                       <span class="icon-bar"></span>
+                                       <span class="icon-bar"></span>
+                               </button>
+                               <a class="navbar-brand" href="<%if 
(content.rootpath) {%>${content.rootpath}<% } else { %><% }%>/#">
+                                   <span>
+
+                                   <% if (content.uri && content.uri == 
'/index.html') { %>
+                                       <img
+                            src="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>img/logo.png"
+                            data-active-url="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>img/logo-active.png">
+                    <% } else { %>
+                        <img src="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>img/logo-active.png">
+                    <% } %>
+
+                    </span>
+                                   Apache TomEE
+                </a>
+                       </div>
+                       <!-- Collect the nav links, forms, and other content 
for toggling -->
+                       <div class="collapse navbar-collapse" 
id="bs-example-navbar-collapse-1">
+                               <ul class="nav navbar-nav navbar-right 
main-nav">
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% 
}%>developer/index.html">Developer</a></li>
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>admin/index.html">Admin</a></li>
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>advanced/index.html">Advanced</a></li>
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>security/index.html">Security</a></li>
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% 
}%>examples/index-ng.html">Examples</a></li>
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>blog/index.html">Blog</a></li>
+                                       <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% 
}%>community/index.html">Community</a></li>
+                    <li><a href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>download-ng.html">Downloads</a></li>
+                               </ul>
+                       </div>
+                       <!-- /.navbar-collapse -->
+               </div>
+               <!-- /.container-fluid -->
+       </nav>

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/page.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/page.gsp 
b/src/main/jbake/templates/page.gsp
new file mode 100755
index 0000000..b0c64d3
--- /dev/null
+++ b/src/main/jbake/templates/page.gsp
@@ -0,0 +1,25 @@
+<%include "header.gsp"%>
+       <%include "menu.gsp"%>
+
+    <div id="main-block" class="container section-padded">
+        <div class="row title">
+            <div class='page-header'>
+              <%if (content.containsKey('tomeepdf')) {%>
+              <div class='btn-toolbar pull-right' style="z-index: 2000;">
+                <div class='btn-group'>
+                    <a class="btn" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>${content.uri.replace('html', 
'pdf')}"><i class="fa fa-file-pdf-o"></i> Download as PDF</a>
+                </div>
+              </div>
+              <% } %>
+              <h2>${content.title}</h2>
+            </div>
+        </div>
+        <div class="row">
+            <%if (content.body) {%>
+            <div class="col-md-12">
+                ${content.body}
+            </div>
+            <% } %>
+        </div>
+    </div>
+<%include "footer.gsp"%>

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/post.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/post.gsp 
b/src/main/jbake/templates/post.gsp
new file mode 100755
index 0000000..2a89939
--- /dev/null
+++ b/src/main/jbake/templates/post.gsp
@@ -0,0 +1,25 @@
+<%include "header.gsp"%>
+       
+       <%include "menu.gsp"%>
+       <div id="main-block" class="container section-padded">
+        <div class="row title">
+            <div class='page-header'>
+              <%if (content.containsKey('tomeepdf')) {%>
+              <div class='btn-toolbar pull-right'>
+                <div class='btn-group'>
+                    <a class="btn" href="<%if (content.rootpath) 
{%>${content.rootpath}<% } else { %><% }%>${content.uri.replace('html', 
'pdf')}"><i class="fa fa-file-pdf-o"></i> Download as PDF</a>
+                </div>
+              </div>
+              <% } %>
+              <h2>${content.title}</h2>
+            </div>
+        </div>
+        <div class="row">
+            <div class="col-md-12">
+                <%if (content.date) {%><p><em>${content.date}</em></p><% } %>
+
+                ${content.body}
+            </div>
+        </div>
+    </div>
+<%include "footer.gsp"%>

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/sitemap.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/sitemap.gsp 
b/src/main/jbake/templates/sitemap.gsp
new file mode 100755
index 0000000..469e8c3
--- /dev/null
+++ b/src/main/jbake/templates/sitemap.gsp
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";>
+<%published_content.each {content -> %>
+    <url>
+       <loc>http://tomee.apache.org/${content.uri}</loc>
+       <% if (content.date) {%><lastmod>${content.date}</lastmod><% }%>
+    </url>
+<%}%>
+</urlset>

http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/972cc356/src/main/jbake/templates/tags.gsp
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/tags.gsp 
b/src/main/jbake/templates/tags.gsp
new file mode 100755
index 0000000..659b803
--- /dev/null
+++ b/src/main/jbake/templates/tags.gsp
@@ -0,0 +1,38 @@
+<%include "header.gsp"%>
+
+       <%include "menu.gsp"%>
+
+       <div id="main-block">
+       <div class="page-header">
+               <div class="container">
+                       <div class="row">
+                               <div class="col-sm-12">
+                                       <h1>Tag: ${tag}</h1>
+                               </div>
+                       </div>
+               </div>
+       </div>
+
+       <div class="container">
+       <!--<ul>-->
+               <%def last_month=null;%>
+               <%tag_posts.each {post ->%>
+               <%if (last_month) {%>
+                       <%if (post.date.format("MMMM yyyy") != last_month) {%>
+                               </ul>
+                               <h4>${post.date.format("MMMM yyyy")}</h4>
+                               <ul>
+                       <%}%>
+               <%} else {%>
+                       <h4>${post.date.format("MMMM yyyy")}</h4>
+                       <ul>
+               <%}%>
+               
+               <li>${post.date.format("dd")} - <a 
href="${post.uri}">${post.title}</a></li>
+               <% last_month = post.date.format("MMMM yyyy")%>
+               <%}%>
+       </ul>
+       </div>
+       </div>
+       
+<%include "footer.gsp"%>
\ No newline at end of file

Reply via email to