From 96c57d4bd0678103d28a87b455e4aef2a7e285b4 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 18 Jun 2011 23:45:59 +0530 Subject: To solve the problem of links being broken in GitHub for the sake of api site, have them replaced at runtime during rdoc generation --- Rakefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Rakefile') 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) -- cgit v1.2.3