diff options
author | Cindy Pallares <cindy@gitlab.com> | 2018-10-17 19:30:52 +0300 |
---|---|---|
committer | Cindy Pallares <cindy@gitlab.com> | 2018-10-18 01:20:32 +0300 |
commit | fc160f98bf388474fabeac8a29f2cb4bac549a73 (patch) | |
tree | 961ac1697823da1f0575e8019d006b7d9ee9144c /lib/helpers | |
parent | f2b14b4a03747ce42c6fcf9d8d3da72b2f6554ff (diff) |
Add an "edit on GitLab" link to debug docs
It currently links to the gitlab-docs project and it's a 404.
Diffstat (limited to 'lib/helpers')
-rw-r--r-- | lib/helpers/edit_on_gitlab.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/helpers/edit_on_gitlab.rb b/lib/helpers/edit_on_gitlab.rb index e975614c..658b6407 100644 --- a/lib/helpers/edit_on_gitlab.rb +++ b/lib/helpers/edit_on_gitlab.rb @@ -24,6 +24,8 @@ module Nanoc::Helpers product = "ce" if File.exists?(ce_file) end gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/blob/master/doc/#{docs_content_filename}" + elsif product == "debug" + gitlab_url = "https://gitlab.com/debugging/#{product}/blob/master/content/#{docs_content_filename}" else # gitlab-docs pages gitlab_url = "https://gitlab.com/gitlab-com/gitlab-docs/blob/master/#{@item[:content_filename]}" |