mirror of https://github.com/rails/rails
Travis status image added to GitHub README, excluding API pages.
This commit is contained in:
parent
aae5ebf3eb
commit
71232f5d5d
|
@ -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
|
||||
|
|
3
Rakefile
3
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue