diff --git a/CLAUDE.md b/CLAUDE.md index 7aba38c..2424143 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,15 +15,20 @@ python generate_report.py Generate report with custom options: ```bash -python generate_report.py --db pga.db --output report.html --top 10 --background background.png +python generate_report.py --db pga.db --output report.html --top 10 --background background.png --template platinum.html ``` ## Architecture -**Single-file generator (`generate_report.py`):** +**Report generator (`generate_report.py`):** - Reads Lutris SQLite database (`pga.db`) containing games, categories, and playtime data - Embeds all data (games JSON, background image as base64) directly into a self-contained HTML file -- HTML template with Chart.js doughnut chart and dynamic JavaScript filtering is embedded as a string constant (`HTML_TEMPLATE`) +- Loads HTML template from external file (default: `platinum.html`) + +**HTML template (`platinum.html`):** +- Chart.js doughnut charts and dynamic JavaScript filtering +- Mac OS 9 Platinum visual style with placeholder tokens for assets +- Tokens like `__ALL_GAMES__`, `__BACKGROUND_IMAGE__` are replaced at generation time **Database schema (`schema.py`):** - Reference file documenting Lutris database structure