Repository navigation
Add documentation site at docs.paywright.dev-parikh.com - #6
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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./api/) is generated at build time frompackages/template/openapi.jsonbystarlight-openapi, so it uses the same spec as@paywright/sdk.wrangler.jsoncattachesdocs.paywright.dev-parikh.comas a custom domain, and Cloudflare creates the DNS record and certificate on the first deploy..github/workflows/docs.ymlbuilds the site on PRs and deploys on pushes tomain. It only runs when the docs, the spec or the workflow change.homepagefield to the CLI and SDK manifests. npm shows it after each package's next publish.cookie@^2is a direct dependency of the docs package. Without it, Astro's prerender step resolves Express's hoistedcookie@0.7and the build crashes.Before merging
Add these repository secrets, or the deploy step on
mainfails:CLOUDFLARE_API_TOKEN: "Edit Cloudflare Workers" token template, scoped to the account and thedev-parikh.comzoneCLOUDFLARE_ACCOUNT_IDAfter the first deploy, check that the certificate for
docs.paywright.dev-parikh.comshows Active under the Worker's Domains & Routes.Test plan
npm run build -w packages/docsbuilds 37 pages, 23 of them generated API operation pageswrangler deploy --dry-runreads the built assets