- Add 'make examples' to regenerate README images - Add 'make verify-examples' for CI verification - Create GitHub Action to verify examples are up to date - Improve generate_examples.py with better error handling - Add update-examples.sh convenience script - Document development workflow in README This ensures README examples always match the actual code output. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
679 B
Bash
Executable File
25 lines
679 B
Bash
Executable File
#!/bin/bash
|
|
# Update README example images
|
|
# Run this script when you make changes that affect the visual output
|
|
|
|
set -e
|
|
|
|
echo "🔄 Updating README example images..."
|
|
|
|
# Run the example generator
|
|
if ! python3 src/generate_examples.py; then
|
|
echo "❌ Failed to generate examples"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if there are changes
|
|
if git diff --quiet docs/images/; then
|
|
echo "✅ No changes to example images"
|
|
else
|
|
echo "📝 Example images have been updated:"
|
|
git diff --stat docs/images/
|
|
echo ""
|
|
echo "Please review the changes and commit them if they look correct:"
|
|
echo " git add docs/images/"
|
|
echo " git commit -m 'docs: update example images'"
|
|
fi |