Repository: opennlp-site Updated Branches: refs/heads/temp 887da3ee4 -> 955308108
http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/header.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/header.ftl b/src/main/jbake/templates/header.ftl new file mode 100755 index 0000000..d53383c --- /dev/null +++ b/src/main/jbake/templates/header.ftl @@ -0,0 +1,109 @@ +<!DOCTYPE html> +<#-- + 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 lang="en"> +<head> + <meta charset="utf-8"> + <title><#if (content.title)??><#escape x as x?xml>${content.title} - Apache OpenNLP</#escape><#else>Apache OpenNLP</#if></title> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content="Apache OpenNLP is a machine learning based toolkit for the processing of natural language text." /> + <meta name="author" content="The Apache OpenNLP Team" /> + <meta name="keywords" content="java, natural language processing, nlp, apache, open source, web site" /> + <meta name="generator" content="JBake"/> + + <!-- RSS Feed --> + <link rel="alternate" type="application/rss+xml" title="RSS" href="/${config.feed_file}" /> + + <!-- Favicon --> + <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png"> + <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png"> + <link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png"> + <link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png"> + <link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png"> + <link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png"> + <link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png"> + <link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"> + <link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png"> + <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> + <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> + <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> + <link rel="manifest" href="/manifest.json"> + <meta name="msapplication-TileColor" content="#ffffff"> + <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> + <meta name="theme-color" content="#ffffff"> + + <!-- The styles --> + <link href="/css/bootstrap.min.css" rel="stylesheet"> + <link href="/css/asciidoctor.css" rel="stylesheet"> + <link href="/css/prettify.css" rel="stylesheet"> + <style type="text/css"> +/* Sticky footer styles +-------------------------------------------------- */ +html { + position: relative; + min-height: 100%; +} +body { + /* Margin bottom by footer height + 20px for padding */ + margin: 0px; +} +.footer { + text-align: center; + padding: 30px 0; + margin-top: 50px; + border-top: 1px solid #e5e5e5; + border-bottom: 1px solid #e5e5e5; + background-color: #f5f5f5; +} + +.footer .text-muted { + margin: 0px 0; +} + +.footer > .container { + padding-right: 15px; + padding-left: 15px; +} + +.jumbotron { + margin: 0px 0; + text-align: center; + background-color: transparent; + padding-top: 0px; +} + +.jumbotron h1 { + line-height: 1; + font-weight: bold; +} + + </style> + + <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> + <!--[if lt IE 9]> + <script src="/js/html5shiv.js"></script> + <![endif]--> +</head> +<body onload="prettyPrint()"> +<span class="visible-lg"> +<a href="https://github.com/apache/opennlp"><img style="z-index: 9999; position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a> +</span> + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/index.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/index.ftl b/src/main/jbake/templates/index.ftl new file mode 100755 index 0000000..e04ad1b --- /dev/null +++ b/src/main/jbake/templates/index.ftl @@ -0,0 +1,51 @@ +<#-- + 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. +--> +<#include "header.ftl"> + +<#include "menu.ftl"> + +<div class="container"> + <!-- Jumbotron --> + <div class="jumbotron" style="text-align: center"> + <img src="/img/opennlp-logo.png" alt="Apache OpenNLP logo" /> + <h1>Welcome to Apache OpenNLP</h1> + <p class="lead">The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text.</p> + <a class="btn btn-lg btn-primary" href="/docs/" role="button" style="background-color: #832778; border: 1px solid #832778;"><span class="glyphicon glyphicon-chevron-right"></span> Get started</a> + <a class="btn btn-lg btn-primary" href="/download.html" role="button" style="background-color: #BE2043; border: 1px solid #BE2043;"><span class="glyphicon glyphicon-download-alt"></span> Download</a> + </div> + + <div class="row"> + <div class="col-lg-4"> + <h2>About</h2> + <p>OpenNLP supports the most common NLP tasks, such as <i>tokenization</i>, <i>sentence segmentation</i>, <i>part-of-speech tagging</i>, <i>named entity extraction</i>, <i>chunking</i>, <i>parsing</i>, and <i>coreference resolution</i>.</p> + <p>Find out more about it in our <a href="/docs/">manual</a>.</p> + </div> + <div class="col-lg-4"> + <h2>Getting Involved</h2> + <p>The Apache OpenNLP project is developed by volunteers and is always looking for new contributors to work on all parts of the project. Every contribution is welcome and needed to make it better. A contribution can be anything from a small documentation typo fix to a new component.</p> + <p>Learn more about how you can <a href="/get-involved.html">get involved</a>.</p> + </div> + <div class="col-lg-4" style="height: 300px; overflow-y: scroll;"> + <p><a class="twitter-timeline" href="https://twitter.com/ApacheOpennlp">Tweets by ApacheOpennlp</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p> + </div> + </div> + +</div> + +<#include "footer.ftl"> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/menu.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/menu.ftl b/src/main/jbake/templates/menu.ftl new file mode 100755 index 0000000..222ab86 --- /dev/null +++ b/src/main/jbake/templates/menu.ftl @@ -0,0 +1,93 @@ +<#-- + 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. +--> +<nav class="navbar navbar-default"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-items" aria-expanded="false"> + <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="/"> + <img alt="Brand" src="/img/opennlp-navbar-logo.png" class="img-responsive" width="100px" style="position: relative; top: -3px;"> + </a> + </div> + + <div class="collapse navbar-collapse" id="navbar-items"> + <ul class="nav navbar-nav"> + <li> + <a href="/"><span class="glyphicon glyphicon-home"></span> Home</a> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-download-alt"></span> Download <b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="/download.html">OpenNLP Releases</a></li> + <li><a href="/maven-dependency.html">Maven Dependency</a></li> + </ul> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-flag"></span> General <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li><a href="/news/">News</a></li> + <li><a href="/mailing-lists.html">Mailing Lists</a></li> + <li><a href="https://issues.apache.org/jira/browse/OPENNLP">Issue tracker</a></li> + + </ul> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-book"></span> Documentation <b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="/docs/">Manual and Javadocs</a></li> + <li><a href="/faq.html">FAQ</a></li> + <li><a href="https://cwiki.apache.org/OPENNLP">Wiki</a></li> + </ul> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-console"></span> Development <b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="/get-involved.html">Get Involved</a></li> + <li><a href="/source-code.html">Source Code</a></li> + <li><a href="/building.html">Building</a></li> + <li><a href="/code-conventions.html">Code Conventions</a></li> + <li><a href="/release.html">Release</a></li> + <li><a href="/team.html">Project Team</a></li> + </ul> + </li> + + </ul> + <ul class="nav navbar-nav navbar-right"> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-leaf"></span> ASF <b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="https://www.apache.org/">The Apache Software Foundation</a></li> + <li><a href="https://www.apache.org/foundation/thanks.html">Thanks</a></li> + <li><a href="https://www.apache.org/security/">Security</a></li> + <li><a href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li> + </ul> + </li> + </ul> + </div><!-- /.navbar-collapse --> + </div><!-- /.container-fluid --> +</nav> http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/news.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/news.ftl b/src/main/jbake/templates/news.ftl new file mode 100755 index 0000000..126c6fd --- /dev/null +++ b/src/main/jbake/templates/news.ftl @@ -0,0 +1,44 @@ +<#-- + 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. +--> +<#include "header.ftl"> + +<#include "menu.ftl"> + +<div class="container"> + + <div class="row-fluid marketing"> + <div class="span9"> + <h2>News</h2> + <ul> + <#list posts as post> + <#if (post.status == "published") && (post.category??) && (post.category == "news")> + <li><p>${post.date?string("yyyy-MM-dd")}: <a href="/${post.uri}">${post.title}</a></p></li> + </#if> + </#list> + </ul> + <p></p> + <p>Subscribe to Apache OpenNLP updates using the <a href="/${config.feed_file}">feed</a>.</p> + </div> + </div> + + <hr> + +</div> + +<#include "footer.ftl"> http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/page.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/page.ftl b/src/main/jbake/templates/page.ftl new file mode 100755 index 0000000..7249a88 --- /dev/null +++ b/src/main/jbake/templates/page.ftl @@ -0,0 +1,30 @@ +<#-- + 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. +--> +<#include "header.ftl"> + +<#include "menu.ftl"> + +<div class="container"> + <h1 class="title">${content.title}</h1> + + ${content.body} + +</div> + +<#include "footer.ftl"> http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/post.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/post.ftl b/src/main/jbake/templates/post.ftl new file mode 100755 index 0000000..307065e --- /dev/null +++ b/src/main/jbake/templates/post.ftl @@ -0,0 +1,32 @@ +<#-- + 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. +--> +<#include "header.ftl"> + +<#include "menu.ftl"> + +<div class="container"> + <h1 class="title">${content.title}</h1> + + ${content.body} + + <p><em>${content.date?string("dd MMMM yyyy")}</em></p> + <div id="share"><#include "share_links.ftl"></div> +</div> + +<#include "footer.ftl"> http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/jbake/templates/share_links.ftl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/share_links.ftl b/src/main/jbake/templates/share_links.ftl new file mode 100755 index 0000000..7cf89f6 --- /dev/null +++ b/src/main/jbake/templates/share_links.ftl @@ -0,0 +1,44 @@ +<#-- + 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. +--> +<!-- Google Plus --> +<div class="g-plusone" data-size="medium"></div> +<script type="text/javascript"> + window.___gcfg = {lang: 'en-GB'}; + + (function() { + var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; + po.src = 'https://apis.google.com/js/plusone.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); + })(); +</script> + +<!-- Twitter --> +<a href="https://twitter.com/share" class="twitter-share-button" data-dnt="true">Tweet</a> +<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> + +<!-- Facebook --> +<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="true"></div> +<div id="fb-root"></div> +<script>(function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; + fjs.parentNode.insertBefore(js, fjs); +}(document, 'script', 'facebook-jssdk'));</script> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/webapp/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100755 index 0000000..7e9b37c --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,24 @@ +<!DOCTYPE web-app PUBLIC + "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.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. +--> +<web-app> + <display-name>Archetype Created Web Application</display-name> +</web-app> http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/95530810/src/main/webapp/index.jsp ---------------------------------------------------------------------- diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100755 index 0000000..0bbb5d5 --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,23 @@ +<!-- + 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> +<body> +<h2>Hello World!</h2> +</body> +</html>