remove defunct doc stuff

This commit is contained in:
Blake Mizerany 2009-01-18 16:39:39 -08:00
parent ba92616e7d
commit 926f10b0e0
5 changed files with 1 additions and 170 deletions

View File

@ -67,11 +67,6 @@ end
# Rubyforge Release / Publish Tasks ==================================
desc 'Publish website to rubyforge'
task 'publish:doc' => 'doc/api/index.html' do
sh 'scp -rp doc/* rubyforge.org:/var/www/gforge-projects/sinatra/'
end
desc 'Publish gem and tarball to rubyforge'
task 'publish:gem' => [package('.gem'), package('.tar.gz')] do |t|
sh <<-end
@ -84,7 +79,7 @@ end
# Building docs requires HAML and the hanna gem:
# gem install mislav-hanna --source=http://gems.github.com
task 'doc' => ['doc:api','doc:site']
task 'doc' => ['doc:api']
desc 'Generate Hanna RDoc under doc/api'
task 'doc:api' => ['doc/api/index.html']
@ -110,47 +105,6 @@ def rdoc_to_html(file_name)
rdoc.convert(File.read(file_name))
end
def haml(locals={})
require 'haml'
template = File.read('doc/template.haml')
haml = Haml::Engine.new(template, :format => :html4, :attr_wrapper => '"')
haml.render(Object.new, locals)
end
desc 'Build website HTML and stuff'
task 'doc:site' => ['doc/index.html', 'doc/book.html']
file 'doc/index.html' => %w[README.rdoc doc/template.haml] do |file|
File.open(file.name, 'w') do |file|
file << haml(:title => 'Sinatra', :content => rdoc_to_html('README.rdoc'))
end
end
CLEAN.include 'doc/index.html'
file 'doc/book.html' => ['book/output/sinatra-book.html'] do |file|
File.open(file.name, 'w') do |file|
book_content = File.read('book/output/sinatra-book.html')
file << haml(:title => 'Sinatra Book', :content => book_content)
end
end
CLEAN.include 'doc/book.html'
file 'book/output/sinatra-book.html' => FileList['book/**'] do |f|
unless File.directory?('book')
sh 'git clone git://github.com/cschneid/sinatra-book.git book'
end
sh((<<-SH).strip.gsub(/\s+/, ' '))
cd book &&
git fetch origin &&
git rebase origin/master &&
thor book:build
SH
end
CLEAN.include 'book/output/sinatra-book.html'
desc 'Build the Sinatra book'
task 'doc:book' => ['book/output/sinatra-book.html']
# Gemspec Helpers ====================================================
def source_version

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -1,103 +0,0 @@
body {
font-size: 100%;
font-family: Helvetica, Arial, sans-serif;
margin: auto 10em; }
body
{ color: #222;
background: #fafafa;
font-family: Helvetica, Arial, sans-serif;
margin: auto 8em;
padding: 0; }
a {
color: #1177DD;
text-decoration: none; }
a:hover {
text-decoration: underline; }
a img
{ border: none; }
#navigation ul {
text-align: right;
list-style-type: none;
padding: 0;
margin: 0;
clear: both;
position: relative; }
#navigation ul li {
background: #e0e0e0;
padding: 0.4em;
margin-right: 0.5em;
display: inline; }
#content
{ background: #fff;
padding: 1em 2em;
margin: auto 2em;
border: 1px solid #ccc;
border-top: none; border-bottom: none; }
#content .inner {
position: relative;
border-top: 4px solid #222;
margin-top: 0.2em; }
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body #content h1:first-child {
color: #222;
background: #fff;
font: bold 300% Georgia, "Times New Roman", serif;
position: absolute;
left: 180px;
top: -2.7em; }
#content h1 a {
color: #222; }
#content p.first { /* TODO */
font-size: 200%; }
#content h2 {
color: #333;
font-size: 150%;
margin-top: 1.5em;
border-top: 4px solid #e0e0e0;
padding-top: .5em; }
#content h3 {
font-weight: bold;
font-size: 120%;
color: #4e4e4e;
margin: 1em 0 .2em; }
/* code */
#content code, #content pre, #content textarea {
font-family: "Deja Vu Sans Mono", "Bitstream Vera Sans Mono", "Inconsolata", "Consolas", monospace; }
#content pre {
margin: .5em 0;
padding: .5em; }
#content pre {
margin: 1em 0;
font-size: 90%;
background-color: #f8f8ff;
border: 1px solid #dedede;
padding: .5em;
line-height: 1.5em;
color: #444; }
#content pre code {
padding: 0;
font-size: 100%;
background-color: #f8f8ff;
border: none; }
#content code {
font-size: 90%;
background-color: #f8f8ff;
color: #444;
padding: 0 .2em;
border: 1px solid #dedede; }

View File

@ -1,20 +0,0 @@
!!! strict
%html
%head
%title= title
%link{ :media => 'screen', :type => 'text/css', :href => 'sinatra.css', :rel => 'stylesheet' }
%body
#content
%a{ :href => './'}
%img{ :src => "sinatra-logo.gif", :width => 156, :height => 108, :alt => 'Hat' }
%div#navigation
%ul
%li
%a{ :href => './' } The Hat
%li
%a{ :href => './book.html' } The Book
%li
%a{ :href => './api/' } The API
%li
%a{ :href => 'http://github.com/bmizerany/sinatra' } The Source
%div.inner~ content