Commit 54ff9d90adc66f88c608b2157789d71b0944590e

Authored by Marin Jankovski
1 parent fd476cf6

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 38 .title Documentation
39 39  
40 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
... ...