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:
parent
b97d624659
commit
25aa6b4343
1 changed files with 1 additions and 1 deletions
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 a new issue