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
-13
View File
@@ -9,14 +9,6 @@ import { Home } from '@/pages/home'
import { Install } from '@/pages/install'
import { NotFound } from '@/pages/not-found'
/*
* Keyed by RoutePath, so adding an entry to ROUTES without a page here — or a
* page here that ROUTES does not know about — fails `bun run typecheck`.
*
* That drift used to be silent and shipped broken both ways: a prerendered
* file containing NotFound markup under the new page's title, or a real page
* with no prerendered file and "not found" in its tab.
*/
const PAGES: Record<RoutePath, ReactElement> = {
'/': <Home />,
'/install': <Install />,
@@ -24,11 +16,6 @@ const PAGES: Record<RoutePath, ReactElement> = {
'/community': <Community />,
}
/*
* Everything is eagerly imported: the whole site is a couple of hundred kB,
* so route-splitting would trade a network round-trip on every navigation for
* a bundle saving nobody would notice.
*/
export const App = () => (
<Routes>
<Route element={<SiteLayout />}>