diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-08-13 22:14:18 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-08-13 22:14:18 +0530 |
commit | c3bd6bb75fdbeb8f5d92b12ed2a9f5d4958d2f9c (patch) | |
tree | 1596ed9ac11a28cb8fc66894f6141c4301f8366f /Rakefile | |
parent | 9ecc4433bbda255cbcb4a2be442c8ee985692d06 (diff) | |
download | rails-c3bd6bb75fdbeb8f5d92b12ed2a9f5d4958d2f9c.tar.gz rails-c3bd6bb75fdbeb8f5d92b12ed2a9f5d4958d2f9c.tar.bz2 rails-c3bd6bb75fdbeb8f5d92b12ed2a9f5d4958d2f9c.zip |
Fixes readme links better - earlier links broke when the current page is anything other than github.com/rails/rails/. Even github.com/rails/rails (without the trailing slash) broke the readme links. Also change the rakefile that generates the rdoc readme accordingly
Diffstat (limited to 'Rakefile')
-rwxr-xr-x | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -74,7 +74,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!(%r{link:blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html") + rdoc_main.gsub!(%r{link:/rails/rails/blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html") File.open(RDOC_MAIN, 'w') do |f| f.write(rdoc_main) |