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>2022-05-01 21:24:33 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-05-01 21:31:19 +0300
commitb07ea367e4fb422f2787af4955eacf936e36a087 (patch)
treeca6eb361ca13df6432c6a5a0c025e7c545550246
parentbd7d0c1b0c0f4e11dd3f62bc3f62c6764953be76 (diff)
Add edit link for GitLab Operatoraxil-operator-edit-button
-rw-r--r--lib/helpers/edit_on_gitlab.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/helpers/edit_on_gitlab.rb b/lib/helpers/edit_on_gitlab.rb
index ea77df93..659f207e 100644
--- a/lib/helpers/edit_on_gitlab.rb
+++ b/lib/helpers/edit_on_gitlab.rb
@@ -23,8 +23,12 @@ module Nanoc::Helpers
# GitLab Helm chart repo
gitlab_url = "https://gitlab.com/gitlab-org/#{product}/gitlab/blob/master/doc/#{docs_content_filename}"
gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/#{product}/gitlab/edit/master/-/doc/#{docs_content_filename}"
- # gitlab-foss and gitlab repos
+ when "operator"
+ # GitLab Operator repo
+ gitlab_url = "https://gitlab.com/gitlab-org/cloud-native/gitlab-#{product}/blob/master/doc/#{docs_content_filename}"
+ gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/cloud-native/gitlab-#{product}/edit/master/-/doc/#{docs_content_filename}"
when "ee"
+ # gitlab-foss and gitlab repos
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