Skip to content

Drop the unused .mono selector and a no-op working-directory - #21

Merged
barnumbirr merged 1 commit into
masterfrom
drop-redundant-workdir
Oct 13, 2026
Merged

barnumbirr merged 1 commit into
masterfrom
drop-redundant-workdir

Conversation

@barnumbirr

Copy link
Copy Markdown
Contributor

What changes

  • index.html: .mono, code, pre { ... } becomes code, pre { ... }. Nothing in index.html or 404.html has the mono class.
  • .github/workflows/deploy-worker.yml: working-directory: . removed from "Check the routes". The workflow has no defaults: block, so the step already runs at the repository root.
  • scripts/check-site.sh: the header said "Legacy Pages serves whatever is on the branch". The site Worker serves master; Pages stays deployed only as the rollback target, as worker/wrangler.toml says.
  • worker/wrangler.toml: the not_found_handling comment said the setting keeps "the 404.html that Pages serves today". It now says what it does without the Pages comparison.
  • .github/dependabot.yml: the github-actions comment claimed the actions are pinned to commit SHAs. They are first-party actions/* on major tags; the digest pins are the shellcheck and actionlint images in run: lines, which Dependabot does not read.

Why

A dead selector and a no-op key both read as if something depends on them, and comments that describe Pages serving the site, or actions pinned by SHA, send the next reader to check things that are not there.

Verification

Run locally, each step of ci.yml:

  • scripts/check-site.sh: site checks passed, 18 ok lines, before and after; also with EXPIRY_WARN_DAYS=90, as the weekly run does.
  • shellcheck at the CI digest over scripts/*.sh: clean.
  • actionlint at the CI digest: clean.
  • Both workflows and dependabot.yml load under a duplicate-key-rejecting YAML loader; deploy-worker.yml has no top-level or job-level defaults.
  • worker/wrangler.toml parses with tomllib; assets and routes unchanged.
  • The zone's CSP for pkg.haus allows style-src 'unsafe-inline', so editing the inline stylesheet changes no hash.

What only CI and the merge can prove

The deploy job (npx wrangler deploy and scripts/check-routes.py) needs the deploy token and runs only on master. The merge deploys the site as every push to master does; the only served change is the one CSS selector.

index.html: `.mono, code, pre` becomes `code, pre`. No element in
index.html or 404.html carries the mono class.

.github/workflows/deploy-worker.yml: "Check the routes" set
working-directory: ., which is already where a step runs when the
workflow has no defaults block.

Comments that described the site as served by Pages or its actions
as SHA-pinned now match what is there:

- scripts/check-site.sh: the site Worker serves master; Pages is only
  the rollback target.
- worker/wrangler.toml: not_found_handling is what keeps 404.html on a
  miss, with no reference to Pages serving it today.
- .github/dependabot.yml: every action is first-party actions/* on a
  major tag; the digest pins are the linter images in run: lines,
  which Dependabot does not read.
@barnumbirr
barnumbirr merged commit 707196a into master Oct 13, 2026
1 check passed
@barnumbirr
barnumbirr deleted the drop-redundant-workdir branch October 13, 2026 13:29
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