Skip to content

Commit b0ae1f1

Browse files
committed
add rails docs
1 parent 715dc42 commit b0ae1f1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,15 @@ namespace :doc do
187187
sh "ln -s rspec-core/README.md RSpecCore.md" unless test ?f, "RSpecCore.md"
188188
sh "ln -s rspec-expectations/README.md RSpecExpectations.md" unless test ?f, "RSpecExpectations.md"
189189
sh "ln -s rspec-mocks/README.md RSpecMocks.md" unless test ?f, "RSpecMocks.md"
190+
sh "ln -s rspec-rails/README.md RSpecRails.md" unless test ?f, "RSpecRails.md"
190191
sh "yardoc"
191192
sh "rm RSpecCore.md"
192193
sh "rm RSpecExpectations.md"
193194
sh "rm RSpecMocks.md"
195+
sh "rm RSpecRails.md"
196+
sh %q|ruby -pi.bak -e "gsub(/Documentation by YARD \d+\.\d+\.\d+/, 'RSpec 2.8')" doc/_index.html|
197+
sh %q|ruby -pi.bak -e "gsub(/<h1 class=\"alphaindex\">Alphabetic Index<\/h1>/, '')" doc/_index.html|
198+
sh "cp doc/_index.html doc/index.html"
194199
end
195200
end
196201

repos/.yardopts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
rspec-core/lib/**/*.rb
44
rspec-expectations/lib/**/*.rb
55
rspec-mocks/lib/**/*.rb
6+
rspec-rails/lib/**/*.rb
67
-
78
RSpecCore.md
89
RSpecExpectations.md
910
RSpecMocks.md
11+
RSpecRails.md

0 commit comments

Comments
 (0)