Rakefile in mongoid-7.0.4 vs Rakefile in mongoid-7.0.5
- old
+ new
@@ -31,5 +31,17 @@
spec.rspec_opts = %w(--format progress)
spec.pattern = "spec/**/*_spec.rb"
end
task :default => :spec
+
+desc "Generate all documentation"
+task :docs => 'docs:yard'
+
+namespace :docs do
+ desc "Generate yard documention"
+ task :yard do
+ out = File.join('yard-docs', Mongoid::VERSION)
+ FileUtils.rm_rf(out)
+ system "yardoc -o #{out} --title mongoid-#{Mongoid::VERSION}"
+ end
+end