Skip to content

Instantly share code, notes, and snippets.

@logicaroma
Forked from jfgomez86/Rakefile
Created July 28, 2011 00:38
Show Gist options
  • Save logicaroma/1110675 to your computer and use it in GitHub Desktop.
Save logicaroma/1110675 to your computer and use it in GitHub Desktop.
Raketask for generating jsdoc documentation
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