lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r1041579 - in /lucene/cms/trunk: content/ content/lucene/ content/lucene/css/ content/templates/ lib/
Date Thu, 02 Dec 2010 20:54:33 GMT
Author: gsingers
Date: Thu Dec  2 20:54:33 2010
New Revision: 1041579

URL: http://svn.apache.org/viewvc?rev=1041579&view=rev
Log:
trying some stuff out

Added:
    lucene/cms/trunk/content/README.txt   (with props)
    lucene/cms/trunk/content/lucene/
    lucene/cms/trunk/content/lucene/css/
    lucene/cms/trunk/content/lucene/css/lucene.css   (with props)
    lucene/cms/trunk/content/lucene/index.mdtext
    lucene/cms/trunk/content/templates/
    lucene/cms/trunk/content/templates/sidenav.mdtext
    lucene/cms/trunk/content/templates/single_narrative.html   (with props)
    lucene/cms/trunk/content/templates/skeleton.html   (with props)
Modified:
    lucene/cms/trunk/lib/path.pm
    lucene/cms/trunk/lib/view.pm

Added: lucene/cms/trunk/content/README.txt
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/README.txt?rev=1041579&view=auto
==============================================================================
--- lucene/cms/trunk/content/README.txt (added)
+++ lucene/cms/trunk/content/README.txt Thu Dec  2 20:54:33 2010
@@ -0,0 +1,4 @@
+this directory is empty. it is not yet used. 
+the subdirectory stanbol/ is used for content.
+this is done in order to make it possible to use the staging url
+to prepare publishing on the incubator site.

Propchange: lucene/cms/trunk/content/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/cms/trunk/content/lucene/css/lucene.css
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/lucene/css/lucene.css?rev=1041579&view=auto
==============================================================================
    (empty)

Propchange: lucene/cms/trunk/content/lucene/css/lucene.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/cms/trunk/content/lucene/index.mdtext
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/lucene/index.mdtext?rev=1041579&view=auto
==============================================================================
--- lucene/cms/trunk/content/lucene/index.mdtext (added)
+++ lucene/cms/trunk/content/lucene/index.mdtext Thu Dec  2 20:54:33 2010
@@ -0,0 +1,22 @@
+Title: Welcome to Apache Lucene
+
+Welcome to Apache Lucene, the world's greatest search engine
+
+
+# Mailing lists
+do something
+
+
+Mailing list archives are available at [mail-archives.apache.org](http://mail-archives.apache.org/mod_mbox/).
+
+Additional mailing lists:
+
+ * <code>foo</code> : bar
+ * <code>bar</code> : foo
+
+# Source code
+Lorem Ipsum
+
+# Links
+
+* http://www.apache.org
\ No newline at end of file

Added: lucene/cms/trunk/content/templates/sidenav.mdtext
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/templates/sidenav.mdtext?rev=1041579&view=auto
==============================================================================
--- lucene/cms/trunk/content/templates/sidenav.mdtext (added)
+++ lucene/cms/trunk/content/templates/sidenav.mdtext Thu Dec  2 20:54:33 2010
@@ -0,0 +1,6 @@
+# ASF links
+  - [Apache Software Foundation](http://www.apache.org)
+  - [License](http://www.apache.org/licenses/LICENSE-2.0)
+  - [Thanks](http://www.apache.org/foundation/thanks.html)
+  - [Become a Sponsor](http://www.apache.org/foundation/sponsorship.html)
+  
\ No newline at end of file

Added: lucene/cms/trunk/content/templates/single_narrative.html
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/templates/single_narrative.html?rev=1041579&view=auto
==============================================================================
--- lucene/cms/trunk/content/templates/single_narrative.html (added)
+++ lucene/cms/trunk/content/templates/single_narrative.html Thu Dec  2 20:54:33 2010
@@ -0,0 +1 @@
+{% extends "skeleton.html" %}

Propchange: lucene/cms/trunk/content/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/cms/trunk/content/templates/skeleton.html
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/templates/skeleton.html?rev=1041579&view=auto
==============================================================================
--- lucene/cms/trunk/content/templates/skeleton.html (added)
+++ lucene/cms/trunk/content/templates/skeleton.html Thu Dec  2 20:54:33 2010
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+
+  <link href="/lucene/css/lucene.css" rel="stylesheet" type="text/css">
+  <title>Apache Lucene - {% block title %}{{ headers.title }}{% endblock %}</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="navigation"> 
+  {% filter markdown %}{% include "sidenav.mdtext" %}{% endfilter %}
+  </div>
+  
+  <div id="content">
+    <h1 class="title">{% block title %}{{ headers.title }}{% endblock %}</h1>
+    {% block content %}{{ content|markdown }}{% endblock %}
+  </div>
+  
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2010 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>
+  </div>
+  
+</body>
+</html>

Propchange: lucene/cms/trunk/content/templates/skeleton.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/cms/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/lib/path.pm?rev=1041579&r1=1041578&r2=1041579&view=diff
==============================================================================
--- lucene/cms/trunk/lib/path.pm (original)
+++ lucene/cms/trunk/lib/path.pm Thu Dec  2 20:54:33 2010
@@ -4,43 +4,17 @@ use ASF::Value;
 # taken from django's url.py
 
 our @patterns = (
+	[qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
 
-    [qr!^/index\.html$!, news_page =>
-      {
-        svn      => ASF::Value::SVN->new(limit => 5),
-        jira     => ASF::Value::Jira->new(limit => 5,
-                                          url => "http://s.apache.org/q4"),
-        announce => ASF::Value::Mail->new(list => 'announce@apache.org',
-                                          limit => 5),
-        planet   => ASF::Value::Blogs->new(blog => "planet", limit=> 5),
-        blog     => ASF::Value::Blogs->new(blog => "foundation", limit=> 5),
-        twitter  => ASF::Value::Twitter->new(name => 'TheASF', limit => 5),
-      },
-    ],
-
-    [qr!^/dev/index\.html$!, news_page =>
-      {
-        svn      => ASF::Value::SVN->new(limit => 5),
-        twitter  => ASF::Value::Twitter->new(name=>"infrabot", limit => 5),
-        blog     => ASF::Value::Blogs->new(blog => "infra", limit=> 5),
-        jira     => ASF::Value::Jira->new(limit => 5,
-                                          url => "http://s.apache.org/lg"),
-      },
-    ],
-
-    [qr!^/dev/sitemap\.html$!, sitemap => { headers => { title => "Developer Sitemap"
}} ],
-
-    [qr!^/licenses/exports/index\.html$!, exports => {} ],
-
-    [qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
-);
+#	[qr!^/stanbol/sitemap\.html$!, sitemap => { headers => { title => "Stanbol Sitemap"
}} ],
 
+) ;
 
 # for specifying interdependencies between files
 
-our %dependencies = (
-    "/dev/sitemap.html" => [ grep s!^content!!, glob "content/dev/*.mdtext" ],
-);
+#our %dependencies = (
+#    "/stanbol/sitemap.html" => [ grep s!^content!!, glob "content/stanbol/*.mdtext" ],
+#);
 
 1;
 
@@ -62,3 +36,5 @@ our %dependencies = (
            KIND, either express or implied.  See the License for the
            specific language governing permissions and limitations
            under the License.
+
+

Modified: lucene/cms/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/lib/view.pm?rev=1041579&r1=1041578&r2=1041579&view=diff
==============================================================================
--- lucene/cms/trunk/lib/view.pm (original)
+++ lucene/cms/trunk/lib/view.pm Thu Dec  2 20:54:33 2010
@@ -43,6 +43,15 @@ sub single_narrative {
         }
     }
 
+#	$args{sidenav} = {};
+#	read_text_file "templates/sidenav.mdtext", $args{sidenav} ;
+
+#	select STDOUT ;
+#	$| = 1 ;
+#	for my $ke (keys %args) {
+#		print STDOUT "$ke \n";
+#	}
+
     return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
 }
 
@@ -65,12 +74,8 @@ sub news_page {
         }
     }
 
-    my $count=0;
-    for (fetch_doap_url_list()) {
-        my $result = parse_doap($_);
-        next unless defined $result;
-        push @{$args{projects}}, $result;
-        last if ++$count == 3;
+    for ((fetch_doap_url_list())[0..2]) {
+        push @{$args{projects}}, parse_doap($_);
     }
 
     return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
@@ -145,7 +150,6 @@ sub parse_doap {
     close $fh;
     my $result = eval `xsltproc lib/doap2perl.xsl $filename`;
     unlink $filename;
-    return undef if $result->{pmc} =~ m!^http://attic\.apache\.org!;
     return $result;
 }
 



Mime
View raw message