[docs] generalize version subbing in href to catch src too
This commit is contained in:
parent
b97d624659
commit
25aa6b4343
2
Rakefile
2
Rakefile
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue