diff --git a/context/release.md b/context/release.md index 5f0d500..c12d7b1 100644 --- a/context/release.md +++ b/context/release.md @@ -170,9 +170,9 @@ stable version has been published. an npm credential. The called workflow builds the release commit, the one `v` tags. It is skipped when `publish` is. It can also be run by hand (`workflow_dispatch`), from `main` only: `site` carries `if: github.ref == 'refs/heads/main'` (#243), so a run from any other ref skips both jobs and deploys nothing. Two jobs. `site` tests, builds `docs/dist`, audits it (`pnpm docs:audit-dist`), copies it to - `docs/.deploy/worktree/` and runs `wrangler deploy` with `docs/wrangler.jsonc` (a Worker with static assets and no - script, on the Route `northguild.dev/worktree*`), then runs `docs/scripts/deploy-smoke.mjs` against the live URL, - retrying for route propagation. `legacy-pages` runs only after `site` is green and publishes the generated + `docs/.deploy/worktree/` (with `docs/deploy/_headers` at `docs/.deploy/_headers`: a year's `immutable` caching for `_astro/*`, `noindex` for `*.txt`) and runs `wrangler deploy` with `docs/wrangler.jsonc` (a Worker with static assets and no + script, on the Route `northguild.dev/worktree*`), then runs `docs/scripts/deploy-smoke.mjs` against the live URL + (routes, and the three header rows), retrying for route propagation. `legacy-pages` runs only after `site` is green and publishes the generated `docs/legacy/` bundle to GitHub Pages: `schema/v1.json` plus a redirect stub per old route. The old Pages site is that bundle and nothing else. **Seen green in this shape once, from a push**: run 41910362381 on `main` (2026-11-04, c0cc821), `site` and `legacy-pages` both `success`. **Never yet run from `publish.yml`**: the diff --git a/context/stack.md b/context/stack.md index dac7066..60453e7 100644 --- a/context/stack.md +++ b/context/stack.md @@ -35,7 +35,7 @@ docs/ Astro 7 + Starlight docs site, React 19 islands, Base UI; docs/src/content/docs/ Starlight pages (28 pages: `index.mdx` is the landing at `/worktree/`, `getting-started.mdx` is Getting Started at `/worktree/getting-started/`, plus `commands/` (9 command pages and an index), `guides/` (11 guides and an index), `configuration`, `project-configuration`, `faq` and `changelog`) docs/src/ chat client, site metadata, styles; the chat is the page `/dox` (`pages/dox.astro`, one React island, `chat/components/DoxPage.tsx`), reached by plain links only: the header's "Chat with Dox" crystal (`components/Header.astro`, repeated in the mobile menu by `components/MobileMenuFooter.astro`) and the landing's "Ask Dox" (`components/Hero.astro`); `components/DoxMark.astro` draws the crystal, and no page but `/dox` loads chat code; `components/Hero.astro` puts the landing's copy beside `HeroLeaves.astro` (the leaf-particle hero: a still SVG, a canvas and a small loader script; the effect itself, in `hero/` with OGL, is a chunk only the loader's dynamic `import()` reaches, so the landing alone ships hero script; its CSS is in the shared stylesheet) docs/src/styles/northguild/ the NorthGuild theme, vendored unedited from `northguild/northguild.dev` `packages/theme/` (each file's header names the commit); `docs/src/styles/theme.css` is this site's own `--gmt-*` → `--sl-*` mapping. To refresh, see `docs/README.md` (Theme) -docs/wrangler.jsonc the docs site's Worker config (assets from `docs/.deploy`, the build staged under `worktree/` by `stage:deploy`); `docs/scripts/` holds `audit-dist.mjs`, `theme-contrast.mjs` (measures the theme's contrast pairs), `build-legacy-pages.mjs` (writes the gitignored `docs/legacy/`) and `deploy-smoke.mjs` +docs/wrangler.jsonc the docs site's Worker config (assets from `docs/.deploy`, the build staged under `worktree/` and `docs/deploy/_headers` at its root by `stage:deploy`); `docs/scripts/` holds `audit-dist.mjs`, `theme-contrast.mjs` (measures the theme's contrast pairs), `build-legacy-pages.mjs` (writes the gitignored `docs/legacy/`), `deploy-smoke.mjs` and `web-vitals.mjs` (measures Core Web Vitals by hand, not a gate) docs/worker/ Cloudflare Worker for the docs chat, on TanStack AI: `POST /api/chat` serves the current client, `GET /api/brains` the usage counts, `POST /` the frozen legacy protocol (its own `wrangler.toml`, which binds `[ai]`, remote in dev, for the Workers AI brains, and the `DOX_USAGE` KV namespace for the usage ledger) context/ planning-workflow artifacts (this directory) context7.json what Context7 (context7.com) may index from this repo: the user docs, the usage skill and the README — see Documentation below diff --git a/context/verify.md b/context/verify.md index 6fa2041..d3bc88d 100644 --- a/context/verify.md +++ b/context/verify.md @@ -111,7 +111,9 @@ twice on a page; across the site, a sitemap and an `llms.txt` (llmstxt.org forma URLs, a `404.html` (with the site's search, a link to Getting Started at `/worktree/getting-started/`, and no canonical link or JSON-LD), a landing at the root (a heading, a "Get started" link to `/worktree/getting-started/`, one "Ask Dox" link to `/worktree/dox/` and no "Ask Dox" button, no second action and no section below the hero; the root alone may carry the site default description), and no `shuding/nextra` string. The date rule is only meaningful on full git history (CI uses `fetch-depth: 0`): on a shallow clone Starlight and the oracle both read the same truncated log. A page whose source file has no commit yet (a new or just-renamed one) fails the date rule with "no git history", so run the audit after committing it. It prints every failed rule, one line each, and exits 1 on any. To run it by hand: `pnpm docs:build && pnpm docs:audit-dist`, or point it at another build with -`node docs/scripts/audit-dist.mjs `. It also checks accessible names on every page and the 404 (each button named, a name beside visible text containing it, each `` labelled, the search button) and that the built CSS gives `[role=tab]` a minimum height of at least 44px; the search *input* is made in the browser and is checked there. Every file under `dist/_astro/` must carry a hash of five or more characters in its name (`name.hash.ext`), because `docs/deploy/_headers` serves that folder `immutable` for a year; the failure names the file. +#287 Phase 3 (2026-11-08) added: in `llms.txt` the changelog alone sits under `## Optional` and the other 27 pages under `## Documentation`; on each of the 28 pages exactly one `` whose target is a file in the build, and none on `404.html`. +#287 Phase 4 (2026-11-08) added: every built `index.html` and `404.html` must be at most 1,048,576 bytes on disk (Apple TN3156 limits a link preview's main resource to "1 MB", read as 1 MiB); the failure names the page and its size in bytes. Phase 13 added: on every page and the 404, the header's two NorthGuild links (`https://northguild.dev/` reading "NorthGuild", `/worktree/` reading "worktree"), each named by its own visible text, and the GitHub and Discord links (new tab, `rel=noopener`, "(opens in a new tab)" in the name); every `` hidden or a named image; the 404's heading a git error line (`fatal: ...`); and no cyan: it reads the `--gmt-cyan*` variables and their literal colours @@ -131,6 +133,7 @@ Added 2026-11-06 for #266, on every page and the 404: each `starlight-theme-sele and the theme provider's script (the override, not Starlight's, reading the `starlight-theme` key) inline in ``; `theme-contrast.mjs` also measures the toggle's icon beside the GitHub and Discord icons. Added 2026-11-06 for #266, on every page and the 404: in the built `
` the theme toggle (the header's own, not the mobile menu's) comes before the GitHub link, which comes before the Discord link. Added 2026-11-06 for #266, the landing header's entrance: in the built `
`, the entrance marker (`data-landing-entrance`) is on the landing's alone (not any other page's, nor the 404's), and the landing's header holds the internal-arrival script inline (no `src`, reading `document.referrer` and setting `data-entrance-off`); in the built CSS (stylesheets and `