From 727be0fd59a85beec202dc8613e1d4a79e98726c Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Wed, 27 Jul 2011 12:55:58 -0700 Subject: [PATCH] removing source code docs now that we have real docs --- Rakefile | 41 +---------------------------------------- middleman.gemspec | 1 - 2 files changed, 1 insertion(+), 41 deletions(-) diff --git a/Rakefile b/Rakefile index dcd00d45..f37f6339 100644 --- a/Rakefile +++ b/Rakefile @@ -12,43 +12,4 @@ end require 'rake/testtask' require 'rake/clean' -task :test => ["cucumber"] - -# rocco depends on rdiscount, which makes me sad. -unless defined?(JRUBY_VERSION) - # Bring in Rocco tasks - require 'rocco/tasks' - Rocco::make 'docs/' - - desc 'Build rocco docs' - task :docs => :rocco - directory 'docs/' - - # Make index.html a copy of rocco.html - file 'docs/index.html' => 'docs/middleman.html' do |f| - cp 'docs/middleman.html', 'docs/index.html', :preserve => true - end - task :docs => 'docs/index.html' - CLEAN.include 'docs/index.html' - - desc 'Update gh-pages branch' - task :pages => ['docs/.git', :docs] do - rev = `git rev-parse --short HEAD`.strip - Dir.chdir 'docs' do - sh "git add *.html" - sh "git commit -m 'rebuild pages from #{rev}'" do |ok,res| - if ok - verbose { puts "gh-pages updated" } - sh "git push -q o HEAD:gh-pages" - end - end - end - end - - # Update the pages/ directory clone - file 'docs/.git' => ['docs/', '.git/refs/heads/gh-pages'] do |f| - sh "cd docs && git init -q && git remote add o ../.git" if !File.exist?(f.name) - sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ." - end - CLOBBER.include 'docs/.git' -end +task :test => ["cucumber"] \ No newline at end of file diff --git a/middleman.gemspec b/middleman.gemspec index f726a2b5..74275d8d 100644 --- a/middleman.gemspec +++ b/middleman.gemspec @@ -41,6 +41,5 @@ Gem::Specification.new do |s| s.add_development_dependency("cucumber", ["~> 0.10.0"]) s.add_development_dependency("rake", ["0.8.7"]) s.add_development_dependency("rspec", ["~> 2.6.0"]) - s.add_development_dependency("rocco", ["~> 0.8.1"]) unless defined?(JRUBY_VERSION) end