[docs] generalize version subbing in href to catch src too

This commit is contained in:
geemus 2011-04-11 17:55:18 -07:00
parent b97d624659
commit 25aa6b4343
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ task :docs do
if File.extname(file_name) == '.html'
# rewrite links with version
body = File.read(file_path)
body.gsub!(/href="\//, 'href="/' << version << '/')
body.gsub!(/="\//, '="/' << version << '/')
content_type = 'text/html'
else
body = File.open(file_path)