diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-18 23:45:59 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-18 23:45:59 +0530 |
commit | 96c57d4bd0678103d28a87b455e4aef2a7e285b4 (patch) | |
tree | 73c952e99d8a6efe8f382d33d1ca7cbd9894ddc1 /Rakefile | |
parent | 2fbb7504e2c2b0a95398d1ef0c97ea4a403d831d (diff) | |
download | rails-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-x | Rakefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |