Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Bodenmiller <bbodenmiller@hotmail.com>2018-01-01 12:16:16 +0300
committerBen Bodenmiller <bbodenmiller@hotmail.com>2018-01-01 12:16:16 +0300
commit8cbd73efb8ae71e9f103fcf26df2bdc3331f0d50 (patch)
tree142402fbb55c073022af422daecc65019084ae13 /lib
parentedb6ae574b90fe718c5b5a1f82e6450e2b37b36f (diff)
use actual edit on GitLab link
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers/edit_on_gitlab.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helpers/edit_on_gitlab.rb b/lib/helpers/edit_on_gitlab.rb
index 3ca1afda..d6adf2e5 100644
--- a/lib/helpers/edit_on_gitlab.rb
+++ b/lib/helpers/edit_on_gitlab.rb
@@ -12,13 +12,13 @@ module Nanoc::Helpers
if product == "omnibus"
# omnibus-gitlab repo
- gitlab_url = "https://gitlab.com/gitlab-org/#{product}-gitlab/blob/master/doc/#{content_filename}"
+ gitlab_url = "https://gitlab.com/gitlab-org/#{product}-gitlab/edit/master/doc/#{content_filename}"
elsif product == "runner"
# gitlab-runner repo
- gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/blob/master/docs/#{content_filename}"
+ gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/edit/master/docs/#{content_filename}"
else
# gitlab-ce and gitlab-ee repos
- gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/blob/master/doc/#{content_filename}"
+ gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/edit/master/doc/#{content_filename}"
end
result = "<a href='#{gitlab_url}'>Edit this page</a>"