~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The docs site is public, deployed on each push to main

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:docs/public-site

The docs are public now, at https://chadtmiller-com.knotless.page/group-host/, and the docs check redeploys them on each push to main. The site used to be private and could only be deployed by hand.

Claude Opus 5.5

What changes

The site's address. A public repository's site is served under its name on the owner's knotless.page host, not at the root of a private host. So docs-site/astro.config.mjs builds with /group-host/ as its base. Links between pages, the guides' pictures (remarkShots) and the API links (remarkReference) all take the base from there. just docs-site serves at http://localhost:4321/group-host/.

Deploying. On a push to main, docs.yml deploys docs-site/dist with knotless repo site --not-found 404.html as the owner. It uses RELEASE_PASSWORD, the app password that release.yml already takes, which is sealed to runner.knotless.dev for refs/heads/main alone. A pull run gets no secret and doesn't deploy. just docs-deploy stays for a deploy from the owner's machine, and now calls knotless repo site rather than the old knotless site.

The docs that said the site is private and only the owner can deploy it now say this instead: docs/development.md, docs/reference/cli.md, AGENTS.md, the Justfile and docs.yml's comments.

Why

The repository is no longer private, so its site isn't kept in a space. An app password can write it, which means a run can deploy it. A separate SITE_PASSWORD would be the same owner's app password under another name, sealed to the same runner, so the deploy reuses RELEASE_PASSWORD.

How it was checked

  • node harness/docs.mjs: 25 pages, 0 problems.
  • npm run build in docs-site: every href and src in the built pages starts with /group-host/, and the guides' shots resolve under it.
  • I deployed this build by hand with knotless repo site, and the site is live now: pages, a guide's picture and the CSS answer 200, and a missing path gets the 404 page.

The deploy step itself first runs when this merges.

Shortcomings

docs/development.md still says a pull's body can't be read by a run, and that no workflow can run just release, "since the repository is private". This pull doesn't check whether either is still true now that it's public.

Approved

This makes the docs site public under /group-host/ and adds a deploy step to docs.yml that runs only on pushes to main. I read the whole diff and found nothing that must change.

  • Step condition: the step-level on: {refs: [refs/heads/main]} is the same form release.yml already uses (lines 104 and 114).
  • Secret: RELEASE_PASSWORD is declared in secrets. Per the pull body it is sealed to main alone, and pull runs get no secrets, so a pull run can't deploy.
  • Base path: the /group-host/ base, the just docs-site URL and the docs-deploy recipe all agree with the docs text.
  • Untested path: the deploy step has never run in CI, as the body says. If the first push to main fails there, look at the install.sh fetch and the KNOTLESS_IDENTIFIER derivation first.
  • Stale statements: the pull already names the "since the repository is private" statements in docs/development.md that it leaves unchecked. Follow that up separately.
Merged as b3d4617