add scripts

This commit is contained in:
JMARyA 2024-03-08 22:32:08 +01:00
parent 29ef89d8f3
commit 55d389e2d1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/bash
mdq -c file.title:Title -c file.path:Path -f '{"rev": {"$exists": false}}' .

5
scripts/validate_schema.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
mdq -c file.path --noheader . | while IFS= read -r md; do
mdlint --ignore-missing-frontmatter "schema.json" "$md"
done