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
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-09-13 17:03:01 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-09-13 17:03:01 +0300
commit2f5e895aebfa5678e51db303b97de56c51e3cebe (patch)
treeaaa9574456900c0f74a51001318552c0e0d6ff26 /lib/helpers
parent477908eccd0cc7f19db0ef1b1eef2424e6180634 (diff)
Remove gitlab-foss Git URLs as we don't need them anymore
[ci skip]
Diffstat (limited to 'lib/helpers')
-rw-r--r--lib/helpers/edit_on_gitlab.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/helpers/edit_on_gitlab.rb b/lib/helpers/edit_on_gitlab.rb
index d6dbd8ad..5bc70f33 100644
--- a/lib/helpers/edit_on_gitlab.rb
+++ b/lib/helpers/edit_on_gitlab.rb
@@ -23,14 +23,10 @@ module Nanoc::Helpers
# GitLab Helm chart repo
gitlab_url = "https://gitlab.com/#{product}/gitlab/blob/master/doc/#{docs_content_filename}"
gitlab_ide_url = "https://gitlab.com/-/ide/project/#{product}/gitlab/edit/master/-/doc/#{docs_content_filename}"
+ # gitlab-foss and gitlab repos
elsif %w[ce ee].include?(product)
- # gitlab-ce and gitlab-ee repos
- if product == "ee"
- ce_file = File.join(root_dir, @item[:content_filename].sub(@config[:products][:ee][:dirs][:dest_dir], @config[:products][:ce][:dirs][:dest_dir]))
- product = "ce" if File.exists?(ce_file)
- end
- gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/blob/master/doc/#{docs_content_filename}"
- gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab-#{product}/edit/master/-/doc/#{docs_content_filename}"
+ gitlab_url = "https://gitlab.com/gitlab-org/gitlab/blob/master/doc/#{docs_content_filename}"
+ gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab/edit/master/-/doc/#{docs_content_filename}"
else
# gitlab-docs pages
gitlab_url = "https://gitlab.com/gitlab-org/gitlab-docs/blob/master/#{@item[:content_filename]}"