Files
soroban-abacus-flashcards/scripts/update-examples.sh
Thomas Hallock 1adbd1a5ff feat: add CI-friendly example generation and verification
- 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>
2025-09-09 15:55:53 -05:00

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