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:
authorMarcel Amirault <mamirault@gitlab.com>2022-09-27 14:16:15 +0300
committerMarcel Amirault <mamirault@gitlab.com>2022-09-27 14:16:15 +0300
commitb751a618484f48eefd1201d9aa5bf6248a8c97a2 (patch)
tree353db8312e621ec8bf4b0635ad96cc53728e2da7
parent1a749b52cf7ddcc9f86ae6400ae232a3c92f9f7e (diff)
parentf323709de18089261931ca452fd47c76e579c128 (diff)
Merge branch 'kpaizee-fix-redirect-rake-task' into 'main'
Fix source path for rake task See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3120 Merged-by: Marcel Amirault <mamirault@gitlab.com> Approved-by: Evan Read <eread@gitlab.com> Approved-by: Sarah German <sgerman@gitlab.com> Approved-by: Marcel Amirault <mamirault@gitlab.com> Co-authored-by: Kati Paizee <kpaizee@gitlab.com>
-rw-r--r--lib/tasks/redirects.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/redirects.rake b/lib/tasks/redirects.rake
index 7130a1e4..dcf59d7c 100644
--- a/lib/tasks/redirects.rake
+++ b/lib/tasks/redirects.rake
@@ -28,7 +28,7 @@ end
namespace :docs do
desc 'GitLab | Docs | Clean up old redirects'
task :clean_redirects do
- source_dir = File.expand_path(__dir__)
+ source_dir = File.expand_path('../../', __dir__)
redirects_yaml = "#{source_dir}/content/_data/redirects.yaml"
today = Time.now.utc.to_date
mr_title = "Clean up docs redirects - #{today}"