summaryrefslogtreecommitdiff
path: root/app/controllers/help_controller.rb
diff options
context:
space:
mode:
authorkaren Carias <karen@gitlab.com>2015-09-30 13:33:51 -0700
committerkaren Carias <karen@gitlab.com>2015-09-30 13:33:51 -0700
commit126dd008e110dce5dfe7d1d076bc57f33250ee7b (patch)
tree4ce96f2fd7e50faff65df7b556153c08d16a888c /app/controllers/help_controller.rb
parent6a1d695f861e4c5251a2333c673f78705b34891f (diff)
parent54452412f765d9e6e6166e105db9adbc7553aec2 (diff)
downloadgitlab-ce-126dd008e110dce5dfe7d1d076bc57f33250ee7b.tar.gz
solved conflict
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r--app/controllers/help_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 71831c5380d..55050615473 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -1,7 +1,14 @@
class HelpController < ApplicationController
+ skip_before_action :authenticate_user!, :reject_blocked
+
layout 'help'
def index
+ @help_index = File.read(Rails.root.join('doc', 'README.md'))
+
+ # Prefix Markdown links with `help/` unless they already have been
+ # See http://rubular.com/r/nwwhzH6Z8X
+ @help_index.gsub!(/(\]\()(?!help\/)([^\)\(]+)(\))/, '\1help/\2\3')
end
def show