Skip to content

Commit b998aa7

Browse files
authored
Merge pull request #197 from rspec/remove-yard
Remove YARD and related old documentation Rake tasks.
2 parents 551fc36 + 4f1939d commit b998aa7

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ source "https://rubygems.org"
22

33
gem "rake", "~> 11.0.0"
44
gem "thor", "~> 0.14.6"
5-
gem "yard", "~> 0.7.4"
65
gem "octokit", "~> 2.7"

Rakefile

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -398,43 +398,6 @@ task :release_notes, :target do |_, args|
398398
end
399399
end
400400

401-
namespace :doc do
402-
desc "generate docs"
403-
task :generate do
404-
Dir.chdir("repos") do
405-
sh "ln -s rspec-core/README.md RSpecCore.md" unless test ?f, "RSpecCore.md"
406-
sh "ln -s rspec-expectations/README.md RSpecExpectations.md" unless test ?f, "RSpecExpectations.md"
407-
sh "ln -s rspec-mocks/README.md RSpecMocks.md" unless test ?f, "RSpecMocks.md"
408-
sh "ln -s rspec-rails/README.md RSpecRails.md" unless test ?f, "RSpecRails.md"
409-
sh "yardoc"
410-
sh "rm RSpecCore.md"
411-
sh "rm RSpecExpectations.md"
412-
sh "rm RSpecMocks.md"
413-
sh "rm RSpecRails.md"
414-
sh %q|ruby -pi.bak -e "gsub(/Documentation by YARD \d+\.\d+\.\d+/, 'RSpec 2.8')" doc/_index.html|
415-
sh %q|ruby -pi.bak -e "gsub(/<h1 class=\"alphaindex\">Alphabetic Index<\/h1>/, '')" doc/_index.html|
416-
sh "cp doc/_index.html doc/index.html"
417-
end
418-
end
419-
420-
desc "clobber generated docs"
421-
task :clobber do
422-
Dir.chdir("repos") do
423-
sh "rm -rf .yardoc"
424-
sh "rm -rf doc"
425-
end
426-
end
427-
428-
desc "publish generated docs"
429-
task :publish do
430-
Dir.chdir("repos") do
431-
`rsync -av --delete doc [email protected]:/www/api.rspec.info`
432-
end
433-
end
434-
end
435-
436-
task :rdoc => ["doc:clobber", "doc:generate"]
437-
438401
desc "Lists stats generated from the logs for the provided commit ranges"
439402
task :version_stats, :commit_ranges do |t, args|
440403
projects = Projects - ["rspec"]

0 commit comments

Comments
 (0)