Created
November 30, 2010 20:31
-
-
Save jfgomez86/722342 to your computer and use it in GitHub Desktop.
Raketask for generating jsdoc documentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Generate Documentation" | |
task :doc do | |
root = File.dirname __FILE__ | |
perl = %x[which perl].chomp | |
jsdoc_options = [ | |
"--recursive", | |
"--directory #{root}/doc", | |
"--project-name AwesomeProject" | |
].join(" ") | |
sh "#{perl} #{root}/doc/jsdoc/jsdoc.pl #{jsdoc_options} #{root}/public/javascripts/" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment