diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-05-28 14:37:08 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-05-29 08:44:25 +0200 |
commit | 54ff9d90adc66f88c608b2157789d71b0944590e (patch) | |
tree | 0368fa1d77256270a1578ff826adc3c1729936e0 /app/views/help | |
parent | fd476cf62013e49acf23a301b841e7c09197e9ae (diff) | |
download | gitlab-ce-54ff9d90adc66f88c608b2157789d71b0944590e.tar.gz |
Scan the text and add the help path.
Diffstat (limited to 'app/views/help')
-rw-r--r-- | app/views/help/index.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index ca8e17d1527..87fa5ef57d2 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -38,4 +38,7 @@ .title Documentation = preserve do - = markdown File.read(Rails.root.join("doc", "README.md")) + - readme_text = File.read(Rails.root.join("doc", "README.md")) + - text = readme_text.dup + - readme_text.scan(/\]\(([^(]+)\)/) { |match| text.gsub!(match.first, "help/#{match.first}") } + = markdown text |