feat(website): add the bilingual Astro + Tailwind site #5

Merged
laurent merged 1 commit from worktree/brave-cloud-f188 into main 2026-11-10 13:46:16 +01:00
Owner

Summary

Static site for gilfoyle.evrard.online, in website/. Astro 7 + Tailwind v4, English at /, French at /fr/ (tutoiement), one landing page plus a docs section.

website/
├── src/site.ts                 # domain, repo links, locale helpers
├── src/i18n/{en,fr}.ts         # all the copy; one shared type, a missing key fails the build
├── src/content/docs/{en,fr}/   # 8 Markdown pages per locale
├── src/components/             # Landing, Defense, Hardening, Quality, Terminal, ...
├── src/layouts/                # BaseLayout (SEO, hreflang), DocsLayout (sidebar + TOC)
└── scripts/                    # astro launcher, OG rasteriser, WASM shim

Landing sections: why, refusals, guarantees (each card says whether the compiler, the code, the config or the systemd unit enforces it), an attack matrix, the real hardening unit, the quality gate, the tools (systemd, Docker, packages), topology, architecture.

The Docker pieces come from the uncommitted work in /home/laurent/code/gilfoyle (5 container tools, gilfoyle-docker, ADR 0010, [docker] config, 2 fuzz targets). The site describes them as already shipped; it should not merge before that work lands.

 Makefile
+website-install   # cd website && npm ci
+website-dev       # cd website && npm run dev
+website-build     # cd website && npm run build
+website-preview   # cd website && npm run preview

make check is untouched.

CPUs without AVX2/BMI2 (this dev VM is QEMU) kill native bindings with SIGILL, which JS can't catch. Two workarounds, neither runs on a normal machine:

package.json  overrides.rolldown = 1.3.1     # vite 8 pins ~1.2.18, which crashes
run-astro.mjs
  if no avx2 in /proc/cpuinfo
    fetch @astrojs/compiler-binding-wasm32-wasi once   # npm skips it on x64
    preload astro-compiler-wasm.cjs                    # redirects only that binding
  spawn astro

Evidence

  • Before: no website/, make website-build has no rule.
    After:
$ make website-build
[build] 21 page(s) built in 1.32s
[@astrojs/sitemap] `sitemap-index.xml` created at `dist`
  • npm ci succeeds from the lockfile on a clean copy.
  • astro preview serves /, /fr/, /docs/tools/ with 200 and a bad path with 404, listening on 0.0.0.0.
  • Rendered HTML has no leftover vous/votre in /fr/, and canonical + hreflang are absolute (https://gilfoyle.evrard.online/...).
  • Not done: no screenshots, and not read on a real browser.

Merge Danger

Door: two-way

New directory plus four Makefile targets. Revert the commit to undo it.

Blast Radius: none

Nothing in the Rust workspace, CI or make check changes. The only thing that can go wrong is publishing copy that describes Docker support before it exists in main.

## Summary Static site for `gilfoyle.evrard.online`, in `website/`. Astro 7 + Tailwind v4, English at `/`, French at `/fr/` (tutoiement), one landing page plus a docs section. ```text website/ ├── src/site.ts # domain, repo links, locale helpers ├── src/i18n/{en,fr}.ts # all the copy; one shared type, a missing key fails the build ├── src/content/docs/{en,fr}/ # 8 Markdown pages per locale ├── src/components/ # Landing, Defense, Hardening, Quality, Terminal, ... ├── src/layouts/ # BaseLayout (SEO, hreflang), DocsLayout (sidebar + TOC) └── scripts/ # astro launcher, OG rasteriser, WASM shim ``` Landing sections: why, refusals, guarantees (each card says whether the compiler, the code, the config or the systemd unit enforces it), an attack matrix, the real hardening unit, the quality gate, the tools (systemd, Docker, packages), topology, architecture. The Docker pieces come from the uncommitted work in `/home/laurent/code/gilfoyle` (5 container tools, `gilfoyle-docker`, ADR 0010, `[docker]` config, 2 fuzz targets). The site describes them as already shipped; **it should not merge before that work lands**. ```diff Makefile +website-install # cd website && npm ci +website-dev # cd website && npm run dev +website-build # cd website && npm run build +website-preview # cd website && npm run preview ``` `make check` is untouched. CPUs without AVX2/BMI2 (this dev VM is QEMU) kill native bindings with `SIGILL`, which JS can't catch. Two workarounds, neither runs on a normal machine: ```text package.json overrides.rolldown = 1.3.1 # vite 8 pins ~1.2.18, which crashes run-astro.mjs if no avx2 in /proc/cpuinfo fetch @astrojs/compiler-binding-wasm32-wasi once # npm skips it on x64 preload astro-compiler-wasm.cjs # redirects only that binding spawn astro ``` ## Evidence - **Before:** no `website/`, `make website-build` has no rule. **After:** ```text $ make website-build [build] 21 page(s) built in 1.32s [@astrojs/sitemap] `sitemap-index.xml` created at `dist` ``` - `npm ci` succeeds from the lockfile on a clean copy. - `astro preview` serves `/`, `/fr/`, `/docs/tools/` with 200 and a bad path with 404, listening on `0.0.0.0`. - Rendered HTML has no leftover `vous`/`votre` in `/fr/`, and canonical + `hreflang` are absolute (`https://gilfoyle.evrard.online/...`). - Not done: no screenshots, and not read on a real browser. ## Merge Danger **Door:** two-way New directory plus four Makefile targets. Revert the commit to undo it. **Blast Radius:** none Nothing in the Rust workspace, CI or `make check` changes. The only thing that can go wrong is publishing copy that describes Docker support before it exists in `main`.
A static site for gilfoyle.evrard.online in website/: a landing page and a docs
section, in English (/) and French (/fr/, tutoiement), written in Gilfoyle's
voice. It covers what gilfoyle refuses, what is enforced and by what, the
attack matrix, the systemd hardening, the quality gate, the tools (systemd,
Docker, packages), the topology and the architecture.

Astro 7 + Tailwind v4, one i18n dictionary per locale sharing one type, one
Markdown collection per locale. Canonical and hreflang links, OG cards and a
sitemap are generated. dev and preview bind 0.0.0.0.

Two workarounds for CPUs without AVX2/BMI2 (e.g. a QEMU VM), where native
bindings die with SIGILL: rolldown is pinned to 1.3.1, and
scripts/run-astro.mjs falls back to the WASM Astro compiler. Neither runs on a
normal machine.

The Makefile gains website-install, website-dev, website-build and
website-preview. make check is unchanged.
laurent changed title from WIP: feat(website): add the bilingual Astro + Tailwind site to feat(website): add the bilingual Astro + Tailwind site 2026-11-10 13:46:10 +01:00
laurent deleted branch worktree/brave-cloud-f188 2026-11-10 13:46:29 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
laurent/gilfoyle!5
No description provided.