Permalink
Browse files

Need HAML in the Gemfile; continued fixes to the Rake tasks

  • Loading branch information...
1 parent e4e9b51 commit a692ff8c95c4e3d1edd7c973102ff6d280a91c02 Davis W. Frank committed Jun 17, 2011
Showing with 19 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +1 −1 pages
  3. +17 −0 tasks/docs.rb
View
1 Gemfile
@@ -2,6 +2,7 @@ source :rubygems
gem "json_pure", "~>1.4.3"
gem "frank"
+gem "haml"
gem "term-ansicolor"
gem "ragaskar-jsdoc_helper"
gem "rake", "0.8.7"
2 pages
@@ -1 +1 @@
-Subproject commit d08ce2de245d6782c09c652045a12e93af0dc7ec
+Subproject commit 209f74f835dab9f13b8ed140a0fedbda002c0d48
View
17 tasks/docs.rb
@@ -0,0 +1,17 @@
+desc "Build jasmine documentation"
+task :doc => :require_pages_submodule do
+ puts 'Creating Jasmine Documentation'
+ require 'rubygems'
+ require 'jsdoc_helper'
+
+ FileUtils.rm_r "pages/jsdoc", :force => true
+
+ JsdocHelper::Rake::Task.new(:lambda_jsdoc) do |t|
+ t[:files] = core_sources + html_sources + console_sources
+ t[:options] = "-a"
+ t[:out] = "pages/jsdoc"
+ # JsdocHelper bug: template must be relative to the JsdocHelper gem, ick
+ t[:template] = File.join("../".*(100), Dir::getwd, "jsdoc-template")
+ end
+ Rake::Task[:lambda_jsdoc].invoke
+end

0 comments on commit a692ff8

Please sign in to comment.