Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add rails docs

  • Loading branch information...
commit b0ae1f1db4adb3439c5a0af6505a8e20924d6207 1 parent 715dc42
@dchelimsky dchelimsky authored
Showing with 7 additions and 0 deletions.
  1. +5 −0 Rakefile
  2. +2 −0  repos/.yardopts
View
5 Rakefile
@@ -187,10 +187,15 @@ namespace :doc 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 "ln -s rspec-rails/README.md RSpecRails.md" unless test ?f, "RSpecRails.md"
sh "yardoc"
sh "rm RSpecCore.md"
sh "rm RSpecExpectations.md"
sh "rm RSpecMocks.md"
+ sh "rm RSpecRails.md"
+ sh %q|ruby -pi.bak -e "gsub(/Documentation by YARD \d+\.\d+\.\d+/, 'RSpec 2.8')" doc/_index.html|
+ sh %q|ruby -pi.bak -e "gsub(/<h1 class=\"alphaindex\">Alphabetic Index<\/h1>/, '')" doc/_index.html|
+ sh "cp doc/_index.html doc/index.html"
end
end
View
2  repos/.yardopts
@@ -3,7 +3,9 @@
rspec-core/lib/**/*.rb
rspec-expectations/lib/**/*.rb
rspec-mocks/lib/**/*.rb
+rspec-rails/lib/**/*.rb
-
RSpecCore.md
RSpecExpectations.md
RSpecMocks.md
+RSpecRails.md
Please sign in to comment.
Something went wrong with that request. Please try again.