Permalink
Browse files

Use YARD to generate docs

Run "rake yard" to generate the docs locally.
  • Loading branch information...
1 parent 731b11c commit f64737f93c2443388b44e4cb325aa432ffa3c888 @dasch dasch committed with thumblemonks Jan 13, 2010
Showing with 13 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +10 −0 Rakefile
View
@@ -1,3 +1,5 @@
*.gem
pkg
-.*.swp
+.*.swp
+doc
+.yardoc
View
@@ -11,6 +11,16 @@ Rake::TestTask.new(:test) do |test|
test.verbose = false
end
+begin
+ require 'yard'
+ require 'yard/rake/yardoc_task'
+ YARD::Rake::YardocTask.new do |t|
+ t.files = ['lib/**/*.rb']
+ end
+rescue LoadError
+ # YARD isn't installed
+end
+
desc "Run all of them fancy benchmarks, Howard!"
task :benchmarks do
Dir["test/benchmark/*.rb"].each do |file|

0 comments on commit f64737f

Please sign in to comment.