From 15475197ab1151331ac5938eeae39e27f32fcc70 Mon Sep 17 00:00:00 2001 From: Florian BRUNIAUX Date: Sat, 17 Jan 2026 12:21:09 +0100 Subject: [PATCH] feat(sync): add landing site synchronization system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add scripts/check-landing-sync.sh verifying 4 metrics: - Version (VERSION vs landing index.html) - Templates count (find examples/ vs landing badges) - Quiz questions (questions.json vs index.html + quiz.html) - Guide lines (with ±500 tolerance) - Update CLAUDE.md with sync documentation and expected output - Fix templates count: 87 → 49 in README.md badges and text Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 25 ++++++ CLAUDE.md | 75 +++++++++++++++++ README.md | 6 +- VERSION | 2 +- scripts/check-landing-sync.sh | 150 ++++++++++++++++++++++++++++++++++ 5 files changed, 254 insertions(+), 4 deletions(-) create mode 100755 scripts/check-landing-sync.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index e255397..236f666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +--- + +## [3.8.2] - 2026-01-17 + +### Added + +- **Landing Site Synchronization System** + - New script `scripts/check-landing-sync.sh` verifying 4 metrics: + - Version (`VERSION` vs landing index.html) + - Templates count (`find examples/` vs landing badges) + - Quiz questions (`questions.json` vs index.html + quiz.html) + - Guide lines (with ±500 tolerance) + - CLAUDE.md updated with sync documentation and expected output + - Landing site CLAUDE.md created with sync workflow and line numbers + +### Fixed + +- **Templates count corrected**: 87 → 49 in README.md badges and text + - Badge count was wrong since original creation + - Actual count verified with `find examples/ -type f` + +--- + +## [3.8.1] - 2026-01-16 + ### Added - **PDF Generation documentation** diff --git a/CLAUDE.md b/CLAUDE.md index 2c600cd..e5652f2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -86,6 +86,81 @@ echo "3.7.0" > VERSION && ./scripts/sync-version.sh Check `IDEAS.md` for planned improvements and `CHANGELOG.md [Unreleased]` for work in progress. +## Landing Site Synchronization + +**Important**: Ce guide a un site landing associé qui doit être mis à jour après certains changements. + +**Landing repo**: `/Users/florianbruniaux/Sites/perso/claude-code-ultimate-guide-landing/` + +### Éléments à synchroniser + +| Élément | Source (guide) | Destination (landing) | +|---------|----------------|----------------------| +| Version | `VERSION` | index.html footer + FAQ | +| Templates count | Count `examples/` files | Badges, title, meta tags | +| Guide lines | `wc -l guide/ultimate-guide.md` | Badges | +| Golden Rules | README.md | index.html section | +| FAQ | README.md | index.html FAQ | + +### Triggers de sync + +Après ces modifications, **rappeler** de mettre à jour le landing: + +1. **Version bump** → Modifier `VERSION` ici, puis landing +2. **Ajout/suppression templates** → Recalculer count, mettre à jour landing +3. **Modification Golden Rules ou FAQ** → Répercuter sur landing +4. **Changement significatif du guide** (>100 lignes) + +### Commande de vérification + +```bash +./scripts/check-landing-sync.sh +``` + +**Ce que fait le script (4 vérifications):** + +| Check | Source | Comparaison | +|-------|--------|-------------| +| Version | `VERSION` | index.html (footer + FAQ) | +| Templates | `find examples/` | index.html + examples.html | +| Quiz questions | `questions.json` | index.html + quiz.html | +| Guide lines | `wc -l ultimate-guide.md` | index.html (tolérance ±500) | + +**Output attendu (si synchronisé):** +``` +=== Landing Site Sync Check === + +1. Version + Guide: 3.8.1 + Landing: 3.8.1 + OK + +2. Templates Count + Guide: 49 files + index.html: 49 + examples.html: 49 + OK + +3. Quiz Questions + questions.json: 159 + index.html: 159 + quiz.html: 159 + OK + +4. Guide Lines + Actual: 9637 + Landing: 9600+ (approximate) + OK (within tolerance) + +=== Summary === +All synced! +``` + +**En cas de mismatch:** +- Le script indique quel fichier est désynchronisé +- Exit code = nombre d'issues trouvées +- Consulter `landing/CLAUDE.md` pour les numéros de ligne exacts à modifier + ## Research Resources **Perplexity Pro disponible**: Pour toute recherche nécessitant des sources fiables ou des informations récentes sur Claude Code, Anthropic, ou les pratiques de développement assisté par IA: diff --git a/README.md b/README.md index 69dc4c0..527d2fe 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

Stars Lines - Templates + Templates Quiz

@@ -129,7 +129,7 @@ Claude asks 2-4 questions then guides you through personalized content based on - You read official docs → dense, no progression - You search tutorials → scattered, outdated in weeks -**This guide:** Structured learning path with 87 copy-paste templates. Your mileage may vary—but this saves you the exploration time. +**This guide:** Structured learning path with 49 copy-paste templates. Your mileage may vary—but this saves you the exploration time. | Traditional Docs | This Guide | |------------------|------------| @@ -667,7 +667,7 @@ Get notified about major updates, new templates, and Claude Code best practices: --- -*Version 3.8.1 | January 2026 | Crafted with Claude* +*Version 3.8.2 | January 2026 | Crafted with Claude*