Nettoyage incohérences : externalise styles/scripts inline, fix encoding, update README#21
Open
glbprod wants to merge 91 commits into
Open
Nettoyage incohérences : externalise styles/scripts inline, fix encoding, update README#21glbprod wants to merge 91 commits into
glbprod wants to merge 91 commits into
Conversation
(cherry picked from commit f18443a)
Plugin copie src/js/libs/ (marked.min.js) et src/data/activites/ vers dist/ en préservant les chemins relatifs utilisés par les pages HTML. Sans ce commit, Netlify ne trouvait pas marked.min.js → 404 + MIME error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Système B était un doublon obsolète du Système A (navigation.json + inline script index.html). Les deux peuplaient les mêmes containers (.correction-grid, .tools-grid) → loadLinks() écrasait les données correctes avec du contenu stale contenant des URLs /dist/ invalides. Vérification : links-loader.js n'était importé que par app.js, et .tools-grid/.correction-grid inexistants sur les autres pages qui chargent app.js. Suppression sans régression. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- build/ → check-dist.js, security-check.js - deploy/ → netlify-clean.js - dev/ → sync-dev-pages.js, setup-hooks.js, register-page.js, session-end-check.js - firestore/ → export-firestore.js, autofill-wizard-firestore.js - git/ → autocommit.sh, new-branch.sh, dev-prepare.sh, test-timer.sh Fixes : - dev-prepare.sh : ROOT corrigé (../..) pour le nouveau niveau d'imbrication - session-end-check.js : chemin check-dist.js → scripts/build/check-dist.js - package.json : tous les chemins npm run mis à jour Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Vite Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Updated the centralized wizard configuration password.
The deploy:dev script deployed raw source code (--dir=.) with only a warning, creating a footgun: users could unknowingly deploy unbuild code to Netlify. deploy:preview (build + preview) replaces all legitimate use cases. For rare debug scenarios, friction (manual netlify deploy --dir=.) is the protection. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Remove non-critical outils from nav (keep only: Cours, Révisions, Réparabilité, Tinkercad, Graphiques) - Add overflow-x auto + flex-shrink: 0 on desktop nav to enable horizontal scroll - Style scrollbar: Firefox thin, WebKit custom (discrete 4px gray) Fixes nav overflow on viewport < 1024px. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Nav (components.js): - Reduce to 3 static items: Cours, Révisions, Corrections - Disable dynamic sections injection (sections = []) - Corrections now links directly to /src/pages/corrections/corrections.html instead of #corrections anchor navigation.json: - Restore outils section (7 items) for index tools-grid (outils data feeds index-loader.js, not the nav) Light/dark mode toggle (full removal): - Remove <button class="mode-toggle"> from index.html - Remove inline initLightModeToggle() script from index.html - Delete src/js/light-mode-toggle.js - Delete src/css/style-index-light.css (~200 lines) - Remove style-index-light.css <link> from index.html Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Extrait le bloc <style> Artemis II inline vers src/css/hero-buttons.css et ajoute l'animation artemis-pulse sur .btn--artemis__live - Crée src/js/mode-toggle.js (ES6 export) et l'importe dans main.js - Corrige double-encodage UTF-8 + BOM dans src/pages/revisions/index.html (accents et emoji restaurés, guillemet dupliqué supprimé) - README : port dev 3000→3001, pages activités/revisions/simulateurs ajoutées dans la structure, convention data-field kebab-case documentée Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Deploy Preview for technodocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
<style>inline (.btn--artemis,::before,:hover,__live,@keyframes artemis-pulse) verssrc/css/hero-buttons.css; ajoute l'animationartemis-pulsesur.btn--artemis__live(keyframe défini mais non consommé) ; lie la feuille dans<head>deindex.htmlsrc/js/mode-toggle.js(ES6export function initLightModeToggle) depuis le pattern des pages révisions ; l'importe et l'appelle danssrc/js/main.jssrc/pages/revisions/index.html(tous les accents et emoji restaurés via round-trip latin-1 ; guillemet dupliqué dans l'attributcontentsupprimé)3000 → 3001, structure du projet complétée (activites/5eme|4eme|3eme.html,revisions/index.html,simulateurs/artemis-ii-simulateur.html), conventiondata-fieldkebab-case documentéeFichiers modifiés
src/css/hero-buttons.csssrc/js/mode-toggle.jsindex.html<link hero-buttons.css>, suppression<style>inlinesrc/js/main.jsinitLightModeTogglesrc/pages/revisions/index.htmlREADME.mdContraintes respectées
innerHTMLintroduitonclick=inline<main>et sections pédagogiques non touchésstyle.css/style-index-light.cssnon modifiésnpm run devfonctionnel sur port 3001🤖 Generated with Claude Code