Add pre-commit hook for auto-updating documentation

This commit is contained in:
Tuan-Dat Tran
2026-02-20 00:21:45 +01:00
parent 587fb3cbfe
commit 013aa9c636
3 changed files with 15 additions and 0 deletions

7
scripts/pre-commit Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Auto-update documentation on commit
set -e
python3 scripts/update_docs.py
git add README.md AGENTS.md 2>/dev/null || true