Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@ RDoc::Task.new do |doc|
doc.rdoc_dir = "_site" # for github pages
end

namespace :rdoc do
task :fix_links do
%w[_site/index.html _site/README_rdoc.html].each do |path|
fixed = File.read(path).gsub(%r{href="(doc/[^"]+?)\.rdoc"}, 'href="\1_rdoc.html"')
File.write(path, fixed)
end
end
end

task rdoc: ["rdoc:fix_links"]

task default: :test