Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dev: add rake task to build rdoc for all 3 repos in one

  • Loading branch information...
commit bb592b2c27ec794b0170672d6c5a1eda0dde3297 1 parent cfedf22
David Chelimsky dchelimsky authored
Showing with 44 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +32 −0 Rakefile
  3. +9 −0 repos/.yardopts
4 .gitignore
View
@@ -3,9 +3,11 @@
coverage
rdoc
pkg
-repos
tags
.bundle
Gemfile.lock
.bundle
bin
+repos/*
+!repos/.gitkeep
+!repos/.yardopts
32 Rakefile
View
@@ -180,6 +180,38 @@ task :default do
run_command 'rake'
end
+namespace :doc do
+ desc "generate docs"
+ task :generate do
+ Dir.chdir("repos") do
+ sh "ln -s rspec-core/README.md RSpecCore.md" unless test ?f, "RSpecCore.md"
+ sh "ln -s rspec-expectations/README.md RSpecExpectations.md" unless test ?f, "RSpecExpectations.md"
+ sh "ln -s rspec-mocks/README.md RSpecMocks.md" unless test ?f, "RSpecMocks.md"
+ sh "yardoc"
+ sh "rm RSpecCore.md"
+ sh "rm RSpecExpectations.md"
+ sh "rm RSpecMocks.md"
+ end
+ end
+
+ desc "clobber generated docs"
+ task :clobber do
+ Dir.chdir("repos") do
+ sh "rm -rf .yardoc"
+ sh "rm -rf doc"
+ end
+ end
+
+ desc "publish generated docs"
+ task :publish do
+ Dir.chdir("repos") do
+ `rsync -av --delete doc david@davidchelimsky.net:/www/api.rspec.info`
+ end
+ end
+end
+
+task :rdoc => ["doc:clobber", "doc:generate"]
+
task :authors do
logs = Projects.inject("") do |logs, dir|
path = ReposPath.join(dir)
9 repos/.yardopts
View
@@ -0,0 +1,9 @@
+--no-private
+--markup markdown
+rspec-core/lib/**/*.rb
+rspec-expectations/lib/**/*.rb
+rspec-mocks/lib/**/*.rb
+-
+RSpecCore.md
+RSpecExpectations.md
+RSpecMocks.md
Please sign in to comment.
Something went wrong with that request. Please try again.