Permalink
Browse files

minor: use yard for rdoc

  • Loading branch information...
1 parent 881ff7f commit 138a3eff2afd8c8eae5cb8010ed4176209f9ecf4 @brandonblack brandonblack committed Nov 14, 2012
Showing with 4 additions and 12 deletions.
  1. +0 −1 Gemfile
  2. +1 −1 bson.gemspec
  3. +1 −1 bson_ext.gemspec
  4. +1 −1 mongo.gemspec
  5. +1 −8 tasks/docs.rake
View
@@ -8,7 +8,6 @@ gem 'activesupport'
group :deploy do
gem 'git'
gem 'yard'
- gem 'rdoc'
gem 'rvm'
gem 'version_bumper'
gem 'redcarpet' unless RUBY_PLATFORM =~ /java/
View
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.test_files = Dir['test/bson/*.rb', 'test/support/hash_with_indifferent_access.rb']
s.executables = ['b2json', 'j2bson']
s.require_paths = ['lib']
- s.has_rdoc = true
+ s.has_rdoc = 'yard'
s.add_dependency('activesupport')
end
View
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
s.files += Dir['ext/**/*.rb'] + Dir['ext/**/*.c'] + Dir['ext/**/*.h']
s.require_paths = ['ext/bson_ext']
- s.has_rdoc = false
s.extensions = ['ext/cbson/extconf.rb']
+ s.has_rdoc = 'yard'
s.add_dependency('bson', "~> #{s.version}")
end
View
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.test_files = Dir['test/**/*.rb']
s.executables = ['mongo_console']
s.require_paths = ['lib']
- s.has_rdoc = true
+ s.has_rdoc = 'yard'
s.add_dependency('bson', "~> #{s.version}")
end
View
@@ -1,7 +1,7 @@
# -*- mode: ruby; -*-
desc "Generate all documentation"
-task :docs => ['docs:yard', 'docs:rdoc']
+task :docs => 'docs:yard'
namespace :docs do
@@ -13,11 +13,4 @@ namespace :docs do
system "yardoc -o #{out} --title mongo-#{version}"
end
- desc "Generate rdoc documention"
- task :rdoc do
- out = File.join('docs', 'rdoc', bumper_version.to_s)
- FileUtils.rm_rf(out)
- system "rdoc --main README.md --op #{out} --inline-source --quiet README.md `find lib -name '*.rb'`"
- end
-
end

4 comments on commit 138a3ef

Contributor

TylerBrock replied Nov 14, 2012

Nice, i had the same thought.

Contributor

brandonblack replied Nov 14, 2012

yeah, I saw you commit this but it looked like you accidentally did a push --force over it because of the commit history mess I made yesterday. it was no longer there so I added your change back and also dropped the rake task for rdoc. sorry for the confusion.

Contributor

TylerBrock replied Nov 14, 2012

Contributor

brandonblack replied Nov 14, 2012

oh ok. yeah again, sorry. my attempt to sync, then accidental merge really messed things up.

Please sign in to comment.