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
+1 -9
View File
@@ -2,14 +2,6 @@ import { useCallback, useEffect, useRef, useState } from 'react'
const RESET_MS = 1400
/**
* Copy-to-clipboard with a self-clearing "copied" flag.
*
* no execCommand fallback. `navigator.clipboard` is available in
* every secure context, and the site only ever ships over HTTPS (GitHub
* Pages) or localhost. If a copy does fail, the flag stays off and the text
* is still selectable by hand.
*/
export const useCopy = (): { copied: boolean; copy: (text: string) => void } => {
const [copied, setCopied] = useState(false)
const timer = useRef<ReturnType<typeof setTimeout> | null>(null)
@@ -31,7 +23,7 @@ export const useCopy = (): { copied: boolean; copy: (text: string) => void } =>
}, RESET_MS)
},
() => {
// Permission denied or no clipboard: leave the button untouched.
setCopied(false)
},
)
}, [])
-7
View File
@@ -3,13 +3,6 @@ import { useLocation } from 'react-router'
import { metaFor } from '@/lib/routes'
/**
* Keeps the title and meta description in step with the current route.
*
* Each route is also prerendered with its tags already in the HTML, so
* crawlers never depend on this running; it only covers client-side
* navigation after the first paint.
*/
export const usePageMeta = (): void => {
const { pathname } = useLocation()