aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 36007f6e91..4cf01cf063 100755
--- a/Rakefile
+++ b/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