Travis status image added to GitHub README, excluding API pages.

This commit is contained in:
Anand 2011-08-22 17:07:23 +05:30
parent aae5ebf3eb
commit 71232f5d5d
2 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,7 @@ can read more about Action Pack in its {README}[link:/rails/rails/blob/master/ac
* The {API Documentation}[http://api.rubyonrails.org].
== Contributing
== Contributing http://travis-ci.org/rails/rails.png
We encourage you to contribute to Ruby on Rails! Please check out the {Contributing to Rails
guide}[http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html] for guidelines about how

View File

@ -76,6 +76,9 @@ RDoc::Task.new do |rdoc|
rdoc_main.gsub!(/^(?=\S).*?\b(?=Rails)\b/) { "#$&\\" }
rdoc_main.gsub!(%r{link:/rails/rails/blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html")
# Remove Travis build status image from API pages. Only GitHub README page gets this image
rdoc_main.gsub!("http://travis-ci.org/rails/rails.png", "")
File.open(RDOC_MAIN, 'w') do |f|
f.write(rdoc_main)
end