aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-18 23:45:59 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-18 23:45:59 +0530
commit96c57d4bd0678103d28a87b455e4aef2a7e285b4 (patch)
tree73c952e99d8a6efe8f382d33d1ca7cbd9894ddc1 /Rakefile
parent2fbb7504e2c2b0a95398d1ef0c97ea4a403d831d (diff)
downloadrails-96c57d4bd0678103d28a87b455e4aef2a7e285b4.tar.gz
rails-96c57d4bd0678103d28a87b455e4aef2a7e285b4.tar.bz2
rails-96c57d4bd0678103d28a87b455e4aef2a7e285b4.zip
To solve the problem of links being broken in GitHub for the sake of api site, have them replaced at runtime during rdoc generation
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)