activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r795742 - in /activemq/stomp/trunk/webgen: ./ README Rakefile config.yaml ext/ ext/init.rb src/ src/browserfix.css src/default.css src/default.template src/images/ src/images/bodybg.gif src/images/sidebarbg.gif src/index.page
Date Mon, 20 Jul 2009 10:19:03 GMT
Author: dejanb
Date: Mon Jul 20 10:19:02 2009
New Revision: 795742

URL: http://svn.apache.org/viewvc?rev=795742&view=rev
Log:
webgen - initialized

Added:
    activemq/stomp/trunk/webgen/
    activemq/stomp/trunk/webgen/README
    activemq/stomp/trunk/webgen/Rakefile
    activemq/stomp/trunk/webgen/config.yaml
    activemq/stomp/trunk/webgen/ext/
    activemq/stomp/trunk/webgen/ext/init.rb
    activemq/stomp/trunk/webgen/src/
    activemq/stomp/trunk/webgen/src/browserfix.css
    activemq/stomp/trunk/webgen/src/default.css
    activemq/stomp/trunk/webgen/src/default.template
    activemq/stomp/trunk/webgen/src/images/
    activemq/stomp/trunk/webgen/src/images/bodybg.gif   (with props)
    activemq/stomp/trunk/webgen/src/images/sidebarbg.gif   (with props)
    activemq/stomp/trunk/webgen/src/index.page

Added: activemq/stomp/trunk/webgen/README
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/README?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/README (added)
+++ activemq/stomp/trunk/webgen/README Mon Jul 20 10:19:02 2009
@@ -0,0 +1,10 @@
+description:
+  This skeleton of a webgen website provides a set of default files for every
+  created webgen website.
+
+  When using the standard settings, the sources are in the directory `src` and
+  the generated output goes into `out`. Extensions can be placed under `ext`.
+
+  For configuration purposes, use the config.yaml file.
+---
+note: This file can be deleted!

Added: activemq/stomp/trunk/webgen/Rakefile
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/Rakefile?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/Rakefile (added)
+++ activemq/stomp/trunk/webgen/Rakefile Mon Jul 20 10:19:02 2009
@@ -0,0 +1,40 @@
+# -*- ruby -*-
+#
+# This is a sample Rakefile to which you can add tasks to manage your website. For example,
users
+# may use this file for specifying an upload task for their website (copying the output to
a server
+# via rsync, ftp, scp, ...).
+#
+# It also provides some tasks out of the box, for example, rendering the website, clobbering
the
+# generated files, an auto render task,...
+#
+
+require 'webgen/webgentask'
+
+task :default => :webgen
+
+Webgen::WebgenTask.new do |website|
+  website.clobber_outdir = true
+  website.config_block = lambda do |config|
+    # you can set configuration options here
+  end
+end
+
+desc "Render the website automatically on changes"
+task :auto_webgen do
+  puts 'Starting auto-render mode'
+  time = Time.now
+  abort = false
+  old_paths = []
+  Signal.trap('INT') {abort = true}
+
+  while !abort
+    # you may need to adjust the glob so that all your sources are included
+    paths = Dir['src/**/*'].sort
+    if old_paths != paths || paths.any? {|p| File.mtime(p) > time}
+      Rake::Task['webgen'].execute({})
+    end
+    time = Time.now
+    old_paths = paths
+    sleep 2
+  end
+end

Added: activemq/stomp/trunk/webgen/config.yaml
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/config.yaml?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/config.yaml (added)
+++ activemq/stomp/trunk/webgen/config.yaml Mon Jul 20 10:19:02 2009
@@ -0,0 +1,18 @@
+# This is the YAML configuration file for webgen used to set configuration options.
+#
+# The general syntax is:
+#
+#   configuration.option.name: value
+#
+# For example, to set a different default language, you would do:
+#
+#   website.lang: de
+#
+# Have a look at the documentation of the individual configuration options to see
+# the allowed format of the values. Since this is a YAML file, you can easily set
+# configuration options as strings, integers, dates, arrays, hashes and more.
+#
+# The available configuration options can be found on the homepage in the
+# Configuration Option Reference at
+#
+#     http://webgen.rubyforge.org/documentation/reference_configuration.html

Added: activemq/stomp/trunk/webgen/ext/init.rb
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/ext/init.rb?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/ext/init.rb (added)
+++ activemq/stomp/trunk/webgen/ext/init.rb Mon Jul 20 10:19:02 2009
@@ -0,0 +1,10 @@
+# = webgen extensions directory
+#
+# All init.rb files anywhere under this directory get automatically loaded on a webgen run.
This
+# allows you to add your own extensions to webgen or to modify webgen's core!
+#
+# If you don't need this feature you can savely delete this file and the directory in which
it is!
+#
+# The +config+ variable below can be used to access the Webgen::Configuration object for
the current
+# website.
+config = Webgen::WebsiteAccess.website.config

Added: activemq/stomp/trunk/webgen/src/browserfix.css
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/browserfix.css?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/src/browserfix.css (added)
+++ activemq/stomp/trunk/webgen/src/browserfix.css Mon Jul 20 10:19:02 2009
@@ -0,0 +1,7 @@
+/**************** IE fixes ****************/
+
+html
+{overflow:hidden;}
+
+body
+{height:100%; width:100%; overflow:auto;}
\ No newline at end of file

Added: activemq/stomp/trunk/webgen/src/default.css
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/default.css?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/src/default.css (added)
+++ activemq/stomp/trunk/webgen/src/default.css Mon Jul 20 10:19:02 2009
@@ -0,0 +1,92 @@
+/* andreas07 - an open source xhtml/css website layout by Andreas Viklund - http://andreasviklund.com
. Free to use for any purpose as long as the proper credits are given for the original design
work.
+
+Version: 1.1, November 28, 2005 */
+
+/**************** Page and tag styles ****************/
+
+body
+{margin:0; padding:0; color:#303030; background:#fafafa url(images/bodybg.gif) top left repeat-y;
font:76% Verdana,Tahoma,sans-serif;}
+
+ul
+{list-style:circle; margin:15px 0 20px 0; font-size:0.9em;}
+
+li
+{margin:0 0 8px 25px;}
+
+a
+{color:#d85d5d; font-weight:bold; text-decoration:none;}
+
+a:hover
+{color:#505050; text-decoration:underline;}
+
+img
+{float:left; margin:0 15px 15px 0; padding:1px; background:#ffffff; border:1px solid #d0d0d0;}
+
+a img
+{border-color:#d85d5d;}
+
+a img:hover
+{background:#d85d5d; border-color:#d85d5d;}
+
+/**************** Sidebar area styles ****************/
+
+#sidebar
+{position:absolute; top:0; left:0; width:220px; height:100%; overflow:auto; background:#e0e0e0
url(images/sidebarbg.gif) top right repeat-y; text-align:right;}
+
+body > #sidebar
+{position:fixed;}
+
+#sidebar h1
+{margin:20px 18px 0 5px; color:#d85d5d; font-size:1.6em; letter-spacing:-2px; text-align:right;}
+
+#sidebar h2, #sidebar h3
+{margin:0 20px 18px 5px; color:#808080; font-size:1.1em; font-weight:bold; letter-spacing:-1px;
text-align:right;}
+
+#sidebar h3
+{margin:20px 18px 4px 5px; color:#606060;}
+
+#sidebar  p
+{margin:0 20px 18px 5px; color:#606060; font-size:0.8em;}
+
+#sidebar a
+{color:#808080}
+
+#sidebar ul
+{margin-right: 20px; margin-left: 5px; list-style-type: none;}
+
+#sidebar li
+{margin: 0px; padding-left: 5px;}
+
+/**************** Navigation menu styles ****************/
+
+#menu ul
+{list-style-type: none; margin: 0px; padding: 0px; font-size: 1.0em;}
+
+#menu li
+{margin: 0px; padding: 0px}
+
+#menu a,  #menu span
+{display:block; width:202px; padding:5px 18px 5px 0; color:#606060; background:#e0e0e0 url(images/sidebarbg.gif)
top right repeat-y; font-size:1.8em; font-weight:normal; text-decoration:none; letter-spacing:-2px;}
+
+#menu a:hover, #menu span:hover
+{color:#303030; background:#f0f0f0 url(images/sidebarbg.gif) top right repeat-y;}
+
+#menu li.webgen-menu-item-selected a, #menu li.webgen-menu-item-selected span
+{padding:5px 18px 5px 0; background:#fafafa; border-top:2px solid #c0c0c0; border-bottom:2px
solid #c0c0c0;}
+
+#menu li.webgen-menu-item-selected a:hover, #menu li.webgen-menu-item-selected span:hover
+{color:#505050; background:#fafafa;}
+
+/**************** Content area styles ****************/
+
+#content
+{width:520px; margin:0 0 0 240px; padding:20px 0; background:#fafafa;}
+
+#content p
+{margin:0 0 20px 0; line-height:1.5em;}
+
+#content h1
+{margin:0; color:#808080; font-weight:normal; font-size:2.5em; letter-spacing:-2px; text-align:center;}
+
+#content h2
+{clear:both; margin:30px 0 10px 0; color:#d85d5d; font-weight:normal; font-size: 2em; letter-spacing:-2px;}

Added: activemq/stomp/trunk/webgen/src/default.template
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/default.template?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/src/default.template (added)
+++ activemq/stomp/trunk/webgen/src/default.template Mon Jul 20 10:19:02 2009
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta name="description" content="description goes here" />
+    <meta name="keywords" content="keywords,goes,here" />
+    <meta name="author" content="Your Name" />
+    <meta name="generator" content="webgen - http://webgen.rubyforge.org" />
+    <link rel="stylesheet" type="text/css" href="{relocatable: default.css}" />
+    <!--[if IE 6]>
+        <link rel="stylesheet" href="{relocatable: browserfix.css}" type="text/css" />
+        <![endif]-->
+    <title>{title:}</title>
+  </head>
+
+  <body>
+    <div id="sidebar">
+      <h1>Website Title</h1>
+      <h2>your website slogan</h2>
+
+      <div id="menu">
+        {menu: {max_levels: 1, used_nodes: files}}
+      </div>
+
+      <h3>Links:</h3>
+      <ul>
+        <li><a href="http://webgen.rubyforge.org">webgen homepage</a></li>
+        <li><a href="http://andreasviklund.com/templates/">Website templates</a></li>
+        <li><a href="http://openwebdesign.org/">Open Web Design</a></li>
+        <li><a href="http://oswd.org/">OSWD.org</a></li>
+      </ul>
+    </div>
+
+    <div id="content">
+      <webgen:block name="content" />
+
+      <h2>site info</h2>
+      <p>&copy; 2005-2006 Your Name | Generated by <a href="http://webgen.rubyforge.org">webgen</a>
| Design by <a href="http://andreasviklund.com">Andreas Viklund</a>.</p>
+    </div>
+  </body>
+</html>

Added: activemq/stomp/trunk/webgen/src/images/bodybg.gif
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/images/bodybg.gif?rev=795742&view=auto
==============================================================================
Binary file - no diff available.

Propchange: activemq/stomp/trunk/webgen/src/images/bodybg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: activemq/stomp/trunk/webgen/src/images/sidebarbg.gif
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/images/sidebarbg.gif?rev=795742&view=auto
==============================================================================
Binary file - no diff available.

Propchange: activemq/stomp/trunk/webgen/src/images/sidebarbg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: activemq/stomp/trunk/webgen/src/index.page
URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/index.page?rev=795742&view=auto
==============================================================================
--- activemq/stomp/trunk/webgen/src/index.page (added)
+++ activemq/stomp/trunk/webgen/src/index.page Mon Jul 20 10:19:02 2009
@@ -0,0 +1,15 @@
+---
+title: Empty Index Page
+in_menu: true
+routed_title: New webgen Website
+---
+## Welcome to *webgen*!
+
+This is just a place holder for the start page for your new website!
+
+You can start by adjusting the meta information for this page file and adding some real content
and
+then adding some more page files!
+
+For more information about webgen have a look at the [documentation]!
+
+[documentation]: http://webgen.rubyforge.org/documentation/index.html



Mime
View raw message