generate documentation in directory specific to version number
This commit is contained in:
parent
0818627108
commit
0aec898596
6
Rakefile
6
Rakefile
@ -21,8 +21,10 @@ end
|
|||||||
|
|
||||||
desc "Generate documentation"
|
desc "Generate documentation"
|
||||||
task :rdoc do
|
task :rdoc do
|
||||||
FileUtils.rm_rf('html')
|
version = eval(File.read("mongo-ruby-driver.gemspec")).version
|
||||||
system "rdoc --main README.rdoc --op html --inline-source --quiet README.rdoc `find lib -name '*.rb'`"
|
out = File.join('html', version.to_s)
|
||||||
|
FileUtils.rm_rf(out)
|
||||||
|
system "rdoc --main README.rdoc --op #{out} --inline-source --quiet README.rdoc `find lib -name '*.rb'`"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Publish documentation to mongo.rubyforge.org"
|
desc "Publish documentation to mongo.rubyforge.org"
|
||||||
|
Loading…
Reference in New Issue
Block a user