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

View File

@@ -7,6 +7,10 @@ Command-line toolkit for managing Magic: The Gathering Commander (EDH) decks usi
```bash
git clone <repo-url>
cd Decks
# Install git hook for auto-updating docs
cp scripts/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
```
No dependencies required - pure Python 3 standard library.

View File

@@ -7,6 +7,10 @@ Command-line toolkit for managing Magic: The Gathering Commander (EDH) decks usi
```bash
git clone <repo-url>
cd Decks
# Install git hook for auto-updating docs
cp scripts/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
```
No dependencies required - pure Python 3 standard library.

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