fix: vendor check_docs to avoid raw GitHub URL rate limits (#3704)

## Summary
- The CI `check:docs` task imports from
`raw.githubusercontent.com/denoland/std/.../_tools/check_docs.ts` which
intermittently fails with **429 Too Many Requests**, breaking CI on
unrelated PRs
- Vendor the script locally as `tools/check_docs_lib.ts` (from
`denoland/std`'s `_tools/check_docs.ts` + inlined `resolve` from
`_tools/utils.ts`) to eliminate the external dependency
- Both `@deno/doc` and `@std/collections` were already in the import
map, so no new dependencies

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bartek Iwańczuk
2026-03-26 11:05:20 +01:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 93356c80c4
commit 8a2b659339
2 changed files with 383 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { checkDocs } from "https://github.com/denoland/std/raw/refs/heads/main/_tools/check_docs.ts";
import { checkDocs } from "./check_docs_lib.ts";
await checkDocs([
import.meta.resolve("../packages/fresh/src/error.ts"),