Enforce that all docs have last_review_date frontmatter

- So we don't forget to add it to new docs we write.
This commit is contained in:
Issy Long 2025-02-08 00:06:29 +00:00
parent c62fcdfb20
commit 00905fbd7e
No known key found for this signature in database

View File

@ -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."