mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[fog.io] fix new links to properly include version
This commit is contained in:
parent
9e4181b18c
commit
12c892142f
2 changed files with 3 additions and 1 deletions
3
Rakefile
3
Rakefile
|
@ -149,7 +149,8 @@ task :docs do
|
|||
if File.extname(file_name) == '.html'
|
||||
# rewrite links with version
|
||||
body = File.read(file_path)
|
||||
body.gsub!(/="\//, '="/' << version << '/')
|
||||
body.gsub!(/='\//, %{='/} << version << '/')
|
||||
body.gsub!(/="\//, %{="/} << version << '/')
|
||||
content_type = 'text/html'
|
||||
else
|
||||
body = File.open(file_path)
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
|
||||
<h2>About</h2>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/about/contributing.html">Contributing</a></li>
|
||||
<li><a href="/about/getting_started.html">Getting Started</a></li>
|
||||
<li><a href="/about/press.html">Press</a></li>
|
||||
|
|
Loading…
Reference in a new issue