Skip to content

fix(docs): lint the whole docs subrepo - #365

Merged
simonvanlierde merged 5 commits into
mainfrom
fix/sites-deploy-checks
Sep 28, 2026
Merged

simonvanlierde merged 5 commits into
mainfrom
fix/sites-deploy-checks

Conversation

@simonvanlierde

@simonvanlierde simonvanlierde commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

docs/biome.jsonc included ".", which Biome 2 reads as the directory alone, so docs lint checked one file. It now includes "**" like www, skips the generated files, and the issues that surfaced are fixed.

  • the test-file lint relaxations www and docs each carried move into biome.base.jsonc
  • the workerd allowBuilds note now matches its use by scripts/check_site_headers.sh

- deploy-sites.yml uploads a version, checks its CSP, HSTS, 404 page and TRACE handling on the version's workers.dev URL, then deploys it; the public hostnames are behind Bot Fight Mode, whose challenge page sends a CSP of its own
- a Worker that does not exist yet gets one plain deploy first, which also turns on its version URLs
biome.jsonc included ".", which Biome 2 reads as the directory alone, so only one file was checked. Include "**" like www, skip the generated files, relax the same test-only rules as www, and fix what surfaced.
check_site_headers.sh runs workerd through wrangler dev; the binary comes from the platform optional dependency, so the install script (a validator and npm download fallback) stays off.
@simonvanlierde simonvanlierde changed the title ci(sites): check each Worker version before it takes traffic fix(docs): lint the whole docs subrepo Sep 28, 2026
@simonvanlierde
simonvanlierde merged commit 088bce7 into main Sep 28, 2026
23 checks passed
@simonvanlierde
simonvanlierde deleted the fix/sites-deploy-checks branch September 28, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant