From 8b0d673e4ca600eeb4ef28f6a415d8699610a919 Mon Sep 17 00:00:00 2001 From: Dag Odenhall Date: Fri, 11 Apr 2008 12:43:02 +0200 Subject: [PATCH] Website stuff --- Rakefile | 14 ++++++++++++++ web/.gitignore | 2 ++ web/Rakefile | 8 ++++++++ web/layouts/default.haml | 18 ++++++++++++++++++ web/styles/global.sass | 27 +++++++++++++++++++++++++++ web/views/index.rdoc | 1 + web/views/license.rdoc | 1 + 7 files changed, 71 insertions(+) create mode 100644 Rakefile create mode 100644 web/.gitignore create mode 100644 web/Rakefile create mode 100644 web/layouts/default.haml create mode 100644 web/styles/global.sass create mode 120000 web/views/index.rdoc create mode 120000 web/views/license.rdoc diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e08c300 --- /dev/null +++ b/Rakefile @@ -0,0 +1,14 @@ +# Copyright (C) 2008 Dag Odenhall +# Licensed under the Academic Free License version 3.0 + +require 'rake/rdoctask' + +Rake::RDocTask.new do |rd| + rd.main = "README.rdoc" + rd.rdoc_files.include("README.rdoc", "COPYING", "lib/**/*.rb") + rd.rdoc_dir = "web/public/api" + rd.title = "amazing api" + rd.options << '--charset' << 'utf-8' << + '--inline-source' << '--line-numbers' << + '--webcvs' << 'http://github.com/dag/amazing/tree/master/%s' +end diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..a99aac9 --- /dev/null +++ b/web/.gitignore @@ -0,0 +1,2 @@ +warp/ +public/ diff --git a/web/Rakefile b/web/Rakefile new file mode 100644 index 0000000..0f82466 --- /dev/null +++ b/web/Rakefile @@ -0,0 +1,8 @@ +# Copyright (C) 2008 Dag Odenhall +# Licensed under the Academic Free License version 3.0 + +if Dir["warp"].empty? + sh "git clone git://github.com/dag/warp.git" +end + +load 'warp/Rakefile' diff --git a/web/layouts/default.haml b/web/layouts/default.haml new file mode 100644 index 0000000..9ff9345 --- /dev/null +++ b/web/layouts/default.haml @@ -0,0 +1,18 @@ +!!! XML +!!! Strict +%html{html_attrs} + %head + %meta{"http-equiv" => "Content-Type", "content" => "text/html, charset=utf-8"} + %title amazing + = link_style + %body + #container + #nav + %ul + %li#nav-home= link_to :index, "Home" + %li#nav-license= link_to :license + %li#nav-api + %a{:href => "api"} API documentation + %li#nav-rubyforge + %a{:href => "http://rubyforge.org/projects/amazing"} Rubyforge project + #content~ yield diff --git a/web/styles/global.sass b/web/styles/global.sass new file mode 100644 index 0000000..eff6baa --- /dev/null +++ b/web/styles/global.sass @@ -0,0 +1,27 @@ +!blue = #4183C4 + +* + :font-family helvetica,arial,clean,sans-serif + +pre + :font-family monospace + +ul + :list-style-type square + +a + :color = !blue + :text-decoration none + +#nav + ul + :padding 0 + + li + :list-style-type none + :display inline + :padding-right 20px + +#container + :margin 0 auto + :width 600px diff --git a/web/views/index.rdoc b/web/views/index.rdoc new file mode 120000 index 0000000..14d0a75 --- /dev/null +++ b/web/views/index.rdoc @@ -0,0 +1 @@ +../../README.rdoc \ No newline at end of file diff --git a/web/views/license.rdoc b/web/views/license.rdoc new file mode 120000 index 0000000..7d29222 --- /dev/null +++ b/web/views/license.rdoc @@ -0,0 +1 @@ +../../COPYING \ No newline at end of file -- 2.11.4.GIT