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:
@@ -1,4 +1,3 @@
|
||||
/** Every off-site destination, in one place. */
|
||||
export const LINKS = {
|
||||
gh: 'https://github.com/michel/soulseek-rs',
|
||||
issues: 'https://github.com/michel/soulseek-rs/issues',
|
||||
@@ -15,8 +14,6 @@ export const LINKS = {
|
||||
slsknet: 'https://www.slsknet.org',
|
||||
} as const
|
||||
|
||||
/** Injected from the workspace Cargo.toml at build time — see vite.config.ts. */
|
||||
export const VERSION = __APP_VERSION__
|
||||
|
||||
/** Where the site is served from. Used for canonical and og:url. */
|
||||
export const SITE_URL = 'https://re-invention.nl/soulseek-rs/'
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user