chore: phase 1 reset — minimalist child theme + content-source extraction
Resets the child theme to its Bricks-first minimalist form (per RESTART-PLAN.md
phases 1a-1d) and extracts the textual copy into a runtime-independent
/content-source/ directory.
Child theme files removed
- header.php, footer.php, page.php, index.php, front-page.php
- template-parts/{solution,industry,conversion-form}.php
- templates/page-*.php (10 Custom Page Templates)
- inc/render-blocks.php, render-blocks-native.php, render-bricks.php
- inc/shortcodes.php, i18n.php, form-handler.php, seo.php
- assets/css/components.css, assets/js/main.js
Reasoning: Bricks Templates (Header / Footer / Single — Page) and Bricks-edited
pages now drive every screen. Anything emitted from the child theme would
fight Bricks' own rendering and waste CSS specificity battles.
Child theme now contains only
- style.css, functions.php (simplified to ~60 lines), theme.json
- inc/cpt.php (case_study + scenario + industry taxonomy)
- assets/css/tokens.css (untouched — design system source of truth)
- assets/css/utilities.css (trimmed to skip-link + sr-only + focus-visible
+ reduced motion — everything else handled by Bricks)
- assets/fonts/Inter-Variable*.woff2 (RGPD self-hosted)
- README.md spelling out the Bricks-first contract
Content moved to /content-source/
- solutions-data.php, industries-data.php, technology-data.php,
editorial-data.php, forms-data.php — git mv preserves history
- README.md explaining their dual role: copy reference while building
in Bricks, and source for programmatic page generation when we
replicate an archetype across its variants.
Root README.md updated with the new repo layout + a pointer to
RESTART-PLAN.md and the archive/session-2-php-templates branch.
Memory file project_asterion_status.md updated for next-session resume.
What's preserved as before
- /BRIEF-Claude-Code.md, both PDFs, all .txt extracts
- /MISSING-ASSETS.md
- /ThirdParty/ (Bricks + WPML ZIPs, gitignored)
- LocalWP site at localhost:10004, Bricks v2.3.4 + WPML 4.9.3 active
- WPML EN/FR with directory URL strategy
- All Git history, both main and archive/session-2-php-templates branches
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
41
README.md
41
README.md
@@ -62,31 +62,46 @@ Puis dans WP Admin → Apparence → Thèmes, activer **Asterion Bricks** (le ch
|
||||
|
||||
---
|
||||
|
||||
## Approche
|
||||
|
||||
**Bricks-first, child theme minimaliste.** Le rendu de chaque page est piloté par Bricks Builder (Templates pour header/footer/archives + pages éditées dans le builder). Le child theme se contente d'apporter le design system (tokens CSS), Inter self-hosté (RGPD) et les Custom Post Types. Voir `wp-content/themes/asterion-bricks/README.md` pour le détail.
|
||||
|
||||
Une session de PHP-rendering plus traditionnelle a été archivée dans la branche Git `archive/session-2-php-templates` ainsi que dans `RESTART-PLAN.md` à la racine. Ne pas réintroduire ce pattern sans relire ces deux sources.
|
||||
|
||||
## Structure du repo
|
||||
|
||||
```
|
||||
WP2026/
|
||||
├── BRIEF-Claude-Code.md # brief projet (lecture obligatoire)
|
||||
├── README.md # ce fichier
|
||||
├── RESTART-PLAN.md # historique de la décision Bricks-first
|
||||
├── MISSING-ASSETS.md # tracking des visuels/medias manquants
|
||||
├── *.pdf # 2 livrables stratégie + design (sources de vérité)
|
||||
├── ThirdParty/ # gitignored — ZIP plugins commerciaux à déposer manuellement
|
||||
├── ThirdParty/ # gitignored — ZIP plugins commerciaux
|
||||
│ ├── bricks.*.zip
|
||||
│ └── sitepress-multilingual-cms.*.zip
|
||||
├── content-source/ # copy EN extrait du PDF (référence + génération)
|
||||
│ ├── solutions-data.php
|
||||
│ ├── industries-data.php
|
||||
│ ├── technology-data.php
|
||||
│ ├── editorial-data.php
|
||||
│ ├── forms-data.php
|
||||
│ └── README.md
|
||||
└── wp-content/
|
||||
└── themes/
|
||||
└── asterion-bricks/ # le child theme — coeur du travail
|
||||
├── style.css # en-tête WP + import tokens
|
||||
├── functions.php # hooks, registers, queries
|
||||
├── theme.json # tokens globaux (Gutenberg + Bricks)
|
||||
├── assets/
|
||||
│ ├── css/ # tokens.css, components.css, utilities.css
|
||||
│ ├── js/ # vanilla JS, defer
|
||||
│ ├── fonts/ # Inter + Inter Display self-hosted (RGPD)
|
||||
│ └── img/
|
||||
├── templates/ # exports Bricks JSON (versionnés)
|
||||
├── inc/ # CPT, ACF field groups, SEO schema
|
||||
└── README.md
|
||||
└── asterion-bricks/ # child theme minimaliste, voir son README
|
||||
├── style.css
|
||||
├── functions.php
|
||||
├── theme.json
|
||||
├── README.md
|
||||
├── inc/
|
||||
│ └── cpt.php
|
||||
└── assets/
|
||||
├── css/
|
||||
│ ├── tokens.css # design system, source de vérité
|
||||
│ └── utilities.css # skip-link, sr-only, focus-visible
|
||||
├── fonts/ # Inter Variable self-hosté
|
||||
└── img/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user