Commit e449ee1
`apps/docs/redirects.mjs` is a 92-entry table of permanent (308) redirects
and nothing in the repo read it: `dispatch-gates.mjs apps/docs/redirects.mjs`
named no check family over 99 discovered ones, and `git grep -l 'redirects.mjs'
-- scripts .github` had 0 hits. #8948 found three destinations aiming at pages
that do not exist -- live URLs answering a 308 into a 404.
Adds `scripts/check-docs-redirects.mjs` (dependency-free, pure filesystem),
the `check:docs-redirects` root script, and a step in lint.yml's required
ESLint job. Three assertions: destinations resolve the way Fumadocs routes
them, wildcard destinations resolve to a real directory, and no destination is
itself matched by a source (chains), following Next's own matching semantics.
Every limb carries a positive control in `--self-test` over a temp fixture that
runs the real loadTable + checkTable path, paired with a clean-table control so
an over-eager checker fails as loudly as a blind one. The live table has been
100% green since 62b2655, so a passing run over real data cannot distinguish
a working resolver from one that resolves everything.
Claude-Session: https://claude.ai/code/session_011RB4waLuNbdruCo6X9oobm
Co-authored-by: Claude <noreply@anthropic.com>
1 parent c0525b2 commit e449ee1
3 files changed
Lines changed: 733 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
274 | 314 | | |
275 | 315 | | |
276 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments