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:
authorEvan Read <eread@gitlab.com>2022-02-24 12:08:27 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-02-24 12:08:27 +0300
commit5e5dd6dcc1355f6167f7f6fadfc716d302e6e003 (patch)
tree775abaf7a1cef56293b2a77639b15aefdac17ef9 /Rakefile
parentcfaf11a4c4ec18d6d152622fac4fdeff9662d092 (diff)
Add debug output to redirects task
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 0b42661c..c03424d7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -332,7 +332,8 @@ namespace :docs do
# contains an example of the YAML front matter.
#
files_to_be_deleted = `grep -Ir 'remove_date:' #{content_dir} | grep -v doc/development/documentation/redirects.md | cut -d ":" -f1`.split("\n")
-
+ puts "Found redirect files:"
+ files_to_be_deleted.each { |file| puts "- #{file}" }
#
# Iterate over the files to be deleted and print the needed
# YAML entries for the Docs site redirects.
@@ -350,6 +351,7 @@ namespace :docs do
# To not be confused with the remove_date of the Markdown page.
#
next unless remove_date < today
+ puts "In #{filename}, remove date: #{remove_date} is less than today (#{today})."
counter += 1