summaryrefslogtreecommitdiff
path: root/scripts/filter_proper_md
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-06-24 18:37:57 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-06-24 18:37:57 +0400
commitdd71f019de0314f7b3f2ae1e0aa920e49e9f2759 (patch)
tree5b8513c4f2e7959eb45de75d93f331506b1cbd43 /scripts/filter_proper_md
parent014901951cc44a70ff3d4aaa4246592b08699d69 (diff)
refactor: everything chageddev
Diffstat (limited to 'scripts/filter_proper_md')
-rwxr-xr-xscripts/filter_proper_md14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/filter_proper_md b/scripts/filter_proper_md
new file mode 100755
index 0000000..ed1be7f
--- /dev/null
+++ b/scripts/filter_proper_md
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import sys
+from parse_frontmatter import parse_frontmatter
+from pathlib import Path
+
+def isproper(file):
+ frontmatter = parse_frontmatter(file)
+ if not frontmatter.get("draft"):
+ print(file)
+
+script_dir = Path(__file__).resolve().parent
+for arg in sys.argv[1:]:
+ isproper(arg)