1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[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

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)