chore: strip the comments this branch added

Removes every comment introduced on this branch: website/ in full, pages.yml
in full, and only the blocks added to ci.yml and release.yml — their
pre-existing comments are untouched.

Two directives survive because they are load-bearing rather than prose: the
triple-slash vite/client reference, and nothing else.

Two comments were carrying behaviour that the code did not state, so the
code now states it. useCopy's rejection handler clears the copied flag
instead of sitting empty, and writeTheme returns whether the write actually
landed instead of swallowing the failure in a bare catch. isExternal drops
its regex for two startsWith calls, which reads the same and no longer
hides a `//` inside a literal.
This commit is contained in:
Michel de Graaf
2026-07-25 01:29:55 +02:00
parent ba92e75fd3
commit c2dd227cee
45 changed files with 20 additions and 518 deletions
-15
View File
@@ -1,23 +1,9 @@
export interface RouteMeta {
/** Path without the base prefix, always leading-slashed. */
path: string
title: string
description: string
}
/**
* The single source of truth for what pages exist.
*
* Read three times: React Router matches against it, the layout applies the
* meta on navigation, and scripts/prerender.ts walks it to decide which HTML
* files to write. Adding a page means adding one entry here plus its route.
*/
/*
* `as const satisfies` rather than a plain annotation: the annotation widened
* `path` to `string`, which is what let App.tsx's hand-written route list
* drift from this one without failing the build. Literal paths make the
* mapping in App.tsx exhaustive-checkable.
*/
export const ROUTES = [
{
path: '/',
@@ -45,7 +31,6 @@ export const ROUTES = [
},
] as const satisfies readonly RouteMeta[]
/** Every path the site serves, as literals. */
export type RoutePath = (typeof ROUTES)[number]['path']
export const NOT_FOUND_META: RouteMeta = {