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:
parent
c62fcdfb20
commit
00905fbd7e
@ -12,6 +12,8 @@ end
|
|||||||
desc "Run Markdownlint to validate the Markdown style."
|
desc "Run Markdownlint to validate the Markdown style."
|
||||||
task :lint do
|
task :lint do
|
||||||
sh "mdl $(git ls-files '*.md' | grep -v 'Manpage.md')"
|
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
|
end
|
||||||
|
|
||||||
desc "Run HTMLProofer to validate the HTML output."
|
desc "Run HTMLProofer to validate the HTML output."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user