1
0
Fork 0
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:
geemus 2011-05-04 18:30:37 -07:00
parent 9e4181b18c
commit 12c892142f
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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>