Skip to content
Browse files

remove defunct doc stuff

  • Loading branch information...
1 parent ba92616 commit 926f10b0e05e7eb09fed5ef6d501e3fff28917f2 @bmizerany bmizerany committed Jan 18, 2009
Showing with 1 addition and 170 deletions.
  1. +1 −47 Rakefile
  2. 0 doc/favicon.ico
  3. BIN doc/sinatra-logo.gif
  4. +0 −103 doc/sinatra.css
  5. +0 −20 doc/template.haml
View
48 Rakefile
@@ -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
0 doc/favicon.ico
No changes.
View
BIN doc/sinatra-logo.gif
Deleted file not rendered
View
103 doc/sinatra.css
@@ -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
20 doc/template.haml
@@ -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

0 comments on commit 926f10b

Please sign in to comment.
Something went wrong with that request. Please try again.