Permalink
Browse files

Enable running docs site with bootstrap Ruby using 'rake docs'.

  • Loading branch information...
1 parent 9239452 commit df791c5ae1bf3b36eae744274a45d00b68f935c6 Brian Ford committed Sep 27, 2010
Showing with 12 additions and 3 deletions.
  1. +10 −0 Rakefile
  2. +2 −0 lib/bin/docs.rb
  3. +0 −3 lib/rubinius/documentation.rb
View
@@ -106,6 +106,16 @@ task :gem_bootstrap do
end
end
+desc "Run the Rubinius documentation website"
+task :docs do
+ require 'kernel/delta/options'
+ require 'rbconfig'
+ require 'webrick'
+ require 'lib/rubinius/documentation'
+
+ Rubinius::Documentation.main
+end
+
desc "Documents why no spec tasks exist"
task :spec do
puts <<-EOM
View
@@ -1,3 +1,5 @@
+require 'rbconfig'
+require 'webrick'
require 'rubinius/documentation'
Rubinius::Documentation.main
@@ -6,9 +6,6 @@
# the launchy gem has been adapted to launch a web browser to
# view the documentation.
-require 'rbconfig'
-require 'webrick'
-
module Rubinius
class Documentation
def self.main

0 comments on commit df791c5

Please sign in to comment.