Commit 54ff9d90adc66f88c608b2157789d71b0944590e
1 parent
fd476cf6
Exists in
spb-stable
and in
2 other branches
Scan the text and add the help path.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
app/views/help/index.html.haml
@@ -38,4 +38,7 @@ | @@ -38,4 +38,7 @@ | ||
38 | .title Documentation | 38 | .title Documentation |
39 | 39 | ||
40 | = preserve do | 40 | = preserve do |
41 | - = markdown File.read(Rails.root.join("doc", "README.md")) | 41 | + - readme_text = File.read(Rails.root.join("doc", "README.md")) |
42 | + - text = readme_text.dup | ||
43 | + - readme_text.scan(/\]\(([^(]+)\)/) { |match| text.gsub!(match.first, "help/#{match.first}") } | ||
44 | + = markdown text |