Commit Graph
12 Commits
Author SHA1 Message Date
Bartek IwańczukandClaude Opus 4.6 2c94a1da2e ci: add link checker to CI (#3707)
## Summary
- Rewrite `tools/check_links.ts` to be more robust (inspired by
denoland/docs' `better_link_checker.ts`)
- Add `deno task check:links` to `deno.json`
- Wire it into CI as a new step (Ubuntu + v2.x only, after `build-www`)
- Add missing `docs/latest/examples/index.md` to fix broken
`/docs/examples` link
- Crawl up to 10 pages concurrently for faster link checking

## What the link checker does
1. Builds the www site with Vite
2. Launches a production server
3. Crawls all internal links starting from the root (10 pages
concurrently)
4. Reports broken links (4xx/5xx) with referrer info
5. Detects empty `href` attributes
6. Prints a summary at the end instead of throwing on first failure

Improvements over the old `check_links.ts`:
- Doesn't throw on first 404 — collects all failures and reports at the
end
- Detects empty hrefs
- Skips non-HTML content, fragment-only links, external links, and
common static file extensions
- Shows referrer for each broken link so you know where to fix it

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 13:49:17 +00:00
Bartek IwańczukandClaude Opus 4.6 8a2b659339 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>
2026-03-26 11:05:20 +01:00
Marvin Hagemeister 78b886d397 chore: fix non-prerelease version in release script (#3442) 2025-09-15 19:19:44 +02:00
Marvin Hagemeister 79d8cfc3ed docs: make 2.x the default version (#3369) 2025-09-09 14:36:51 +02:00
Marvin Hagemeister 05203000da feat(init): mark init as stable to make init command shorter (#3274) 2025-08-29 17:50:03 +02:00
Marvin Hagemeister 815b1940e3 chore: restructure repository into packages/ folder (#3197)
We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
2025-08-06 15:52:45 +02:00
Marvin Hagemeister 6ff0becd0a fix: duplicate @preact/signals version (#2964)
We initialized new projects with `@preact/signals@2.x` but Fresh itself
was using `1.x`. There shall only ever be one version.

Kinda makes me wish Deno had some sort of `peerDependencies`.

Fixes https://github.com/denoland/fresh/issues/2962
2025-05-16 21:23:53 +02:00
Asher Gomez 45ce7e3ac0 chore: add doc checker (#2877)
First steps towards #2876
Depends on https://github.com/denoland/std/pull/6632
2025-05-02 10:55:55 +02:00
Marvin Hagemeister 06bb42689c fix: typo (#2647) 2024-09-09 09:03:49 +02:00
Marvin Hagemeister 0f6b4f624f chore: remove debug trace logs (#2545) 2024-06-25 10:08:48 +02:00
Marvin Hagemeister 7eb9a9b5ff chore: improve release script (#2501) 2024-06-05 13:24:15 +02:00
Marvin Hagemeister b0b4bf1efd chore: add release script (#2490) 2024-06-04 18:01:32 +02:00