summaryrefslogtreecommitdiff
path: root/misc/hooks/pre-commit-makerst
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-12-06 23:35:43 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-12-06 23:40:19 +0100
commit17add2dc86b7c52c93aac162242bd98c9bf2eed2 (patch)
treea15c53616cbef087737e3c06565c9e3580c63d95 /misc/hooks/pre-commit-makerst
parent111ba06310a8688b294afc58a8f369e0a8cad4df (diff)
Add a pre-commit hook to check the class reference syntax
This also makes documentation helper scripts executable.
Diffstat (limited to 'misc/hooks/pre-commit-makerst')
-rwxr-xr-xmisc/hooks/pre-commit-makerst5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/hooks/pre-commit-makerst b/misc/hooks/pre-commit-makerst
new file mode 100755
index 0000000000..d9b684e73b
--- /dev/null
+++ b/misc/hooks/pre-commit-makerst
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+# Git pre-commit hook that checks the class reference syntax using makerst.py.
+
+doc/tools/makerst.py doc/classes modules --dry-run