Skip to content

Add documentation site at docs.paywright.dev-parikh.com - #6

Merged
devpparikh merged 2 commits into
mainfrom
docs-site
Oct 19, 2026
Merged

devpparikh merged 2 commits into
mainfrom
docs-site

Conversation

@devpparikh

@devpparikh devpparikh commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Adds packages/docs, a Starlight site. Content is taken from the root, template and SDK READMEs and reorganised into Start here / Guides / Client SDKs / Concepts / Reference.
  • The API reference (/api/) is generated at build time from packages/template/openapi.json by starlight-openapi, so it uses the same spec as @paywright/sdk.
  • Deploys as Cloudflare Workers static assets. wrangler.jsonc attaches docs.paywright.dev-parikh.com as a custom domain, and Cloudflare creates the DNS record and certificate on the first deploy.
  • .github/workflows/docs.yml builds the site on PRs and deploys on pushes to main. It only runs when the docs, the spec or the workflow change.
  • Links the docs from the root README and adds a homepage field to the CLI and SDK manifests. npm shows it after each package's next publish.

cookie@^2 is a direct dependency of the docs package. Without it, Astro's prerender step resolves Express's hoisted cookie@0.7 and the build crashes.

Before merging

Add these repository secrets, or the deploy step on main fails:

  • CLOUDFLARE_API_TOKEN: "Edit Cloudflare Workers" token template, scoped to the account and the dev-parikh.com zone
  • CLOUDFLARE_ACCOUNT_ID

After the first deploy, check that the certificate for docs.paywright.dev-parikh.com shows Active under the Worker's Domains & Routes.

Test plan

  • npm run build -w packages/docs builds 37 pages, 23 of them generated API operation pages
  • Every internal link in the built site resolves
  • wrangler deploy --dry-run reads the built assets
  • Template type-check and tests (18/18) and the CLI build still pass with the updated lockfile
  • The docs workflow passes its build on this PR
  • Production deploy and certificate check after merge

devpparikh and others added 2 commits October 19, 2026 17:15
Starlight site in packages/docs with guides, SDK, concepts and CLI
reference pages migrated from the package READMEs, plus an API
reference generated at build time from packages/template/openapi.json.

Deployed as Cloudflare Workers static assets via .github/workflows/docs.yml
(build on PRs, deploy on pushes to main); wrangler attaches the custom
domain. Links the docs from the root README and the CLI/SDK manifests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devpparikh
devpparikh merged commit d765203 into main Oct 19, 2026
2 checks passed
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