Add pre-commit hook for auto-updating documentation
This commit is contained in:
@@ -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.
|
||||
|
||||
4
docs/templates/README.template.md
vendored
4
docs/templates/README.template.md
vendored
@@ -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
7
scripts/pre-commit
Normal 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
|
||||
Reference in New Issue
Block a user