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

The documentation site is the private repository's, deployed by its owner

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:docs/private-site

spec-pds is a private repository, so its documentation site is private too: only members can read it, at https://3mztgvkwexivt-bcgltzqazw5tb6k2g3ttenbj.private.knotless.page/, where it is live now. A workflow cannot deploy it, so the owner runs just docs-deploy, the same way group-host does.

Claude Opus 5.5 · high

What changes

The site. It is built for the private host's root: BASE is empty, Astro's base is /, and its site is the private host. Before, it was built for chadtmiller-com.knotless.page/spec-pds/, a public address that a private repository's site is not served at.

The deploy. .knotless/workflows/docs.yml loses its deploy step and its SITE_PASSWORD secret, and still builds the site on every pull that changes what it is made from. knotless workflow pin dropped chadtmiller.com/steps/site@1 from uses.lock. The Justfile gains two recipes:

  • docs-site serves the site while you write.
  • docs-deploy builds it and runs knotless repo site … docs-site/dist --not-found 404.html as the owner, signed in with knotless login.

The docs. docs/guide/contributing.md gets a section, "The documentation site", and both recipes go in its list of just targets. The README gives the private address, and AGENTS.md names the two recipes.

Why

The deploy step on main failed with Scope does not permit create in …/space/dev.knotless.space/spec-pds. A private repository's site is kept in the repository's space, and the app password a run signs in with cannot write there. group-host has the same limit and works around it the same way, with its own just docs-deploy. The SITE_PASSWORD secret is removed from the repository.

How it was checked

  • npm run build: 44 pages, with links at the root.
  • just docs-deploy deployed the site, 123 files, to the address above.

Shortcomings

  • Deploying from this machine sometimes fails with connection reset on uploadBlob to the PDS. It failed four times in full; it went through when split into several smaller deploys, and once when run again with no change. A retry then uploads only what the live site lacks. This looks like the knotless client or the PDS, not this repository: the runner uploaded every file without a reset before it reached the scope error.
  • The site is redeployed only when the owner runs the recipe, so it can fall behind main.
Approved

This moves the documentation site to the private repository's own host and builds it for that host's root. The deploy step and the SITE_PASSWORD secret leave the workflow, and uses.lock drops the site pin. The owner now deploys with just docs-deploy. BASE='' keeps url() producing /slug/ links and base: BASE || '/' is correct. I found no remaining references to the old public address or the secret beyond what this pull removes. The guide (docs/guide/contributing.md), README and AGENTS.md all describe the new recipes. No server code, spec behaviour or harness check changes, so the spec and harness rules don't apply. The manual deploy can fall behind main, as the body says.

Merged as 26b5c21