webgen - initialized git-svn-id: https://svn.apache.org/repos/asf/activemq/stomp/trunk@795742 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webgen/README b/webgen/README new file mode 100644 index 0000000..331d532 --- /dev/null +++ b/webgen/README
@@ -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!
diff --git a/webgen/Rakefile b/webgen/Rakefile new file mode 100644 index 0000000..8a4c367 --- /dev/null +++ b/webgen/Rakefile
@@ -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
diff --git a/webgen/config.yaml b/webgen/config.yaml new file mode 100644 index 0000000..2e6a360 --- /dev/null +++ b/webgen/config.yaml
@@ -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
diff --git a/webgen/ext/init.rb b/webgen/ext/init.rb new file mode 100644 index 0000000..996ed61 --- /dev/null +++ b/webgen/ext/init.rb
@@ -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
diff --git a/webgen/src/browserfix.css b/webgen/src/browserfix.css new file mode 100644 index 0000000..374470f --- /dev/null +++ b/webgen/src/browserfix.css
@@ -0,0 +1,7 @@ +/**************** IE fixes ****************/ + +html +{overflow:hidden;} + +body +{height:100%; width:100%; overflow:auto;} \ No newline at end of file
diff --git a/webgen/src/default.css b/webgen/src/default.css new file mode 100644 index 0000000..a0bc2c0 --- /dev/null +++ b/webgen/src/default.css
@@ -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;}
diff --git a/webgen/src/default.template b/webgen/src/default.template new file mode 100644 index 0000000..09a100f --- /dev/null +++ b/webgen/src/default.template
@@ -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>© 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>
diff --git a/webgen/src/images/bodybg.gif b/webgen/src/images/bodybg.gif new file mode 100644 index 0000000..c17bdbb --- /dev/null +++ b/webgen/src/images/bodybg.gif Binary files differ
diff --git a/webgen/src/images/sidebarbg.gif b/webgen/src/images/sidebarbg.gif new file mode 100644 index 0000000..7f151b6 --- /dev/null +++ b/webgen/src/images/sidebarbg.gif Binary files differ
diff --git a/webgen/src/index.page b/webgen/src/index.page new file mode 100644 index 0000000..cef9507 --- /dev/null +++ b/webgen/src/index.page
@@ -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