Skip to content

Instantly share code, notes, and snippets.

@jfgomez86
Created November 30, 2010 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jfgomez86/722342 to your computer and use it in GitHub Desktop.
Save jfgomez86/722342 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