aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-06-18 15:02:31 -0700
committerXavier Noria <fxn@hashref.com>2011-06-18 15:02:31 -0700
commit6c705e33ef78d28d5d964a03edc627f31d7f8c25 (patch)
tree73c952e99d8a6efe8f382d33d1ca7cbd9894ddc1 /Rakefile
parent2fbb7504e2c2b0a95398d1ef0c97ea4a403d831d (diff)
parent96c57d4bd0678103d28a87b455e4aef2a7e285b4 (diff)
downloadrails-6c705e33ef78d28d5d964a03edc627f31d7f8c25.tar.gz
rails-6c705e33ef78d28d5d964a03edc627f31d7f8c25.tar.bz2
rails-6c705e33ef78d28d5d964a03edc627f31d7f8c25.zip
Merge pull request #1762 from vijaydev/readme_links_rdoc
Solving the problem of links being broken in GitHub for the sake of api site
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index ba55e580f4..b3bde156d1 100755
--- a/Rakefile
+++ b/Rakefile
@@ -71,6 +71,7 @@ RDoc::Task.new do |rdoc|
# since no autolinking happens there and RDoc displays the backslash
# otherwise.
rdoc_main.gsub!(/^(?=\S).*?\b(?=Rails)\b/) { "#$&\\" }
+ rdoc_main.gsub!(/link:blob\/master\/(\w+)\/README.rdoc/, "link:files/\\1/README_rdoc.html")
File.open(RDOC_MAIN, 'w') do |f|
f.write(rdoc_main)