From 00905fbd7eb86fbbe9e93ff2deb7bd39ea5a507c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 8 Feb 2025 00:06:29 +0000 Subject: [PATCH] Enforce that all docs have `last_review_date` frontmatter - So we don't forget to add it to new docs we write. --- docs/Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Rakefile b/docs/Rakefile index 4d76f69297..9d58bcb719 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -12,6 +12,8 @@ end desc "Run Markdownlint to validate the Markdown style." task :lint do sh "mdl $(git ls-files '*.md' | grep -v 'Manpage.md')" + sh "grep -L '^last_review_date:' $(git ls-files '*.md' | grep -v 'Manpage.md') | " \ + "xargs -I {} echo 'File {} is missing last_review_date frontmatter.'" end desc "Run HTMLProofer to validate the HTML output."