Repository navigation
feat(docs-site): add reusable docs workflows and mkDocsShell - #162
Merged
Merged
Conversation
Add reusable docs-site infrastructure for documentation sites built with Node and pnpm and deployed to Cloudflare Workers. - Add `dk.mkDocsShell` in `nix/lib.nix` providing `nodeToolchain`, `lychee`, and `playwright-driver.browsers` with `PLAYWRIGHT_BROWSERS_PATH` exported in both `env` and `shellHook`. - Add `dev-shell` input support to the `workers` action and `scripts/workers.nu` so preview and production deploys can enter a non-default flake dev shell. - Add `.github/workflows/docs.yml` for formatting, typecheck, lint, build, optional lychee link checks, optional E2E tests, PR preview deploys with sticky comments, and default-branch production deploys. - Add `.github/workflows/docs-cleanup.yml` to remove PR preview deployments on `pull_request_target: closed`. - Group Astro and Starlight minor and major npm updates in `default.json` with automerge disabled. - Document the contract in `docs/docs-site.md` and link it from `AGENTS.md`, `README.md`, and `docs/ci.md`.
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
Add reusable docs-site infrastructure for documentation sites built with Node and pnpm and deployed to Cloudflare Workers.
dk.mkDocsShellinnix/lib.nixprovidingnodeToolchain,lychee, andplaywright-driver.browsers, exportingPLAYWRIGHT_BROWSERS_PATHin bothenvandshellHooksoinputsFromshell compositions preserve the browser path.dev-shellinput to.github/actions/workers/action.ymlandscripts/workers.nuso Workers commands can run inside a non-default flake dev shell attribute..github/workflows/docs.ymlto run frozen pnpm installs,format:check,check,lint,build, optional offlinelycheelink checks, optionaltest:e2e, pull request preview deploys with sticky<!-- docs-preview -->comments, and default-branch production deploys..github/workflows/docs-cleanup.ymlonpull_request_target: closedsharing thepreview-<number>concurrency group to delete pull request previews from the trusted base checkout.default.jsongrouping Astro (astro,@astrojs/*) and Starlight (starlight-*) minor and major updates with automerge disabled while keeping patch updates inNode dependencies.docs/docs-site.md, and link it fromAGENTS.md,README.md, anddocs/ci.md.Test plan
nix flake checkpassed locally onaarch64-darwinnix flake check --all-systemspassed locally (evaluatedx86_64-linux,aarch64-linux, andaarch64-darwinoutputs and built local checks with all new files staged)nix develop -c run-hookspassed prior to commit)docs.ymlanddocs-cleanup.ymland live Cloudflare Workers preview, production, and cleanup runs remain unverified until exercised by a consumer repository