Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit df791c5ae1bf3b36eae744274a45d00b68f935c6 1 parent 9239452
Brian Shirai brixen authored
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
10 Rakefile
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
2  lib/bin/docs.rb
View
@@ -1,3 +1,5 @@
+require 'rbconfig'
+require 'webrick'
require 'rubinius/documentation'
Rubinius::Documentation.main
3  lib/rubinius/documentation.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.