From a519c034c31f3746d35582965f7a02e22e54e64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20SAILLANT?= <108685187+electron-rare@users.noreply.github.com> Date: Sat, 14 Mar 2026 22:38:30 +0000 Subject: [PATCH] Remove public lab exposure and hero status copy --- public/assets/brand/logo-lockup-placeholder.svg | 1 - public/sitemap.xml | 14 ++++++++++---- scripts/build-astro-external.mjs | 14 +------------- src/components/sections/Hero.tsx | 4 ---- src/lib/tracking.ts | 3 +-- src/pages/formation.astro | 2 -- src/pages/index.astro | 3 --- src/pages/mentions-legales.astro | 2 -- src/pages/sitemap.xml.ts | 1 - 9 files changed, 12 insertions(+), 32 deletions(-) diff --git a/public/assets/brand/logo-lockup-placeholder.svg b/public/assets/brand/logo-lockup-placeholder.svg index 8fe79f6..25b30c5 100644 --- a/public/assets/brand/logo-lockup-placeholder.svg +++ b/public/assets/brand/logo-lockup-placeholder.svg @@ -10,5 +10,4 @@ ELECTRON RARE - UNSTABLE BY DESIGN diff --git a/public/sitemap.xml b/public/sitemap.xml index 2df5c53..46168e3 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -7,9 +7,15 @@ 1.0 - https://electron-rare.github.io/lab/ - 2026-03-02 - weekly - 0.8 + https://electron-rare.github.io/formation/ + 2026-03-14 + monthly + 0.9 + + + https://electron-rare.github.io/mentions-legales/ + 2026-03-14 + yearly + 0.3 diff --git a/scripts/build-astro-external.mjs b/scripts/build-astro-external.mjs index ed4b115..1231544 100644 --- a/scripts/build-astro-external.mjs +++ b/scripts/build-astro-external.mjs @@ -23,22 +23,10 @@ const run = (command) => { console.log(`[build-astro-external] Using PUBLIC_SITE_URL=${process.env.PUBLIC_SITE_URL}`); -run('npm run lab:build'); run('npm run build'); -const labSource = path.resolve(process.cwd(), 'lab'); -const labDestination = path.resolve(process.cwd(), 'dist', 'lab'); - -if (fs.existsSync(labSource)) { - fs.rmSync(labDestination, { recursive: true, force: true }); - fs.cpSync(labSource, labDestination, { recursive: true }); - console.log('[build-astro-external] Included lab/ output in dist/lab.'); -} else { - console.warn('[build-astro-external] Warning: lab/ not found; skipping lab route packaging.'); -} - const robotsContent = `User-agent: *\nAllow: /\n\nSitemap: ${siteUrl}sitemap.xml\n`; -const sitemapContent = `\n\n \n ${siteUrl}\n weekly\n 1.0\n \n \n ${siteUrl}lab/\n weekly\n 0.8\n \n\n`; +const sitemapContent = `\n\n \n ${siteUrl}\n weekly\n 1.0\n \n \n ${siteUrl}formation/\n monthly\n 0.9\n \n \n ${siteUrl}mentions-legales/\n yearly\n 0.3\n \n\n`; fs.writeFileSync(path.resolve(process.cwd(), 'dist', 'robots.txt'), robotsContent, 'utf8'); fs.writeFileSync(path.resolve(process.cwd(), 'dist', 'sitemap.xml'), sitemapContent, 'utf8'); diff --git a/src/components/sections/Hero.tsx b/src/components/sections/Hero.tsx index 9613fc0..a82968c 100644 --- a/src/components/sections/Hero.tsx +++ b/src/components/sections/Hero.tsx @@ -22,10 +22,6 @@ export function Hero() {

Design électronique · Consulting · Formation

-
- disponible - freelance · France -

diff --git a/src/lib/tracking.ts b/src/lib/tracking.ts index 3802055..c154e0d 100644 --- a/src/lib/tracking.ts +++ b/src/lib/tracking.ts @@ -3,8 +3,7 @@ export const TRACK_EVENTS = { outboundLinkedinContact: 'outbound_linkedin_contact', outboundEmailContact: 'outbound_email_contact', outboundGithubContact: 'outbound_github_contact', - outboundGithubProjectAudioBattery: 'outbound_github_project_audio_battery', - ctaLabInteractifOpen: 'cta_lab_interactif_open' + outboundGithubProjectAudioBattery: 'outbound_github_project_audio_battery' } as const; export type TrackEventName = (typeof TRACK_EVENTS)[keyof typeof TRACK_EVENTS]; diff --git a/src/pages/formation.astro b/src/pages/formation.astro index 3bb1922..9eb18b8 100644 --- a/src/pages/formation.astro +++ b/src/pages/formation.astro @@ -13,7 +13,6 @@ const homeAboutHref = withSiteBase('/#a-propos'); const homeMissionsHref = withSiteBase('/#graphic-sprints-title'); const formationHref = withSiteBase('/formation/'); const contactHref = withSiteBase('/#contact'); -const labHref = withSiteBase('/lab/'); const mentionsHref = withSiteBase('/mentions-legales/'); const headerItems = [ { href: homeAboutHref, label: 'Approche' }, @@ -255,7 +254,6 @@ const headerItems = [