diff options
author | Evan Read <eread@gitlab.com> | 2022-02-24 12:08:27 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-02-24 12:08:27 +0300 |
commit | 5e5dd6dcc1355f6167f7f6fadfc716d302e6e003 (patch) | |
tree | 775abaf7a1cef56293b2a77639b15aefdac17ef9 | |
parent | cfaf11a4c4ec18d6d152622fac4fdeff9662d092 (diff) |
Add debug output to redirects task
-rw-r--r-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |