From e60aed4c2ef031e3b0becfd131eab2392b8a4657 Mon Sep 17 00:00:00 2001 From: Vivek Date: Thu, 9 Jul 2026 13:22:28 +0530 Subject: [PATCH] fix: sync llms.txt H1 test and docs to WebJs brand casing #855 correctly capitalized the llms.txt index H1 in llms.server.ts to '# WebJs documentation' but left test/docs/llms.test.mjs and docs/AGENTS.md pinning the old lowercase form, which failed on main. Update the test assertion and the docs spec to match the emitted WebJs casing. --- docs/AGENTS.md | 4 ++-- test/docs/llms.test.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 5cfd12a03..0970adedc 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -1,6 +1,6 @@ # AGENTS.md for the docs site -The webjs documentation site, built on webjs itself (eating our own +The WebJs documentation site, built on WebJs itself (eating our own dogfood). All framework-wide rules (file conventions, public API, workflow, scaffold rules, persistence rules, autonomous-mode behaviour) live in the **framework root [`../AGENTS.md`](../AGENTS.md)** and apply @@ -51,7 +51,7 @@ automatically): | URL | What it serves | |---|---| -| `/llms.txt` | A structured INDEX. An `# webjs documentation` H1, a one-line blurb, then a markdown bullet list of every doc page (title, blurb, absolute link). Ordered to match the sidebar nav. | +| `/llms.txt` | A structured INDEX. An `# WebJs documentation` H1, a one-line blurb, then a markdown bullet list of every doc page (title, blurb, absolute link). Ordered to match the sidebar nav. | | `/llms-full.txt` | The full prose CORPUS. Every doc page concatenated as lightweight markdown. In the monorepo it also folds in `agent-docs/*.md`; a standalone deploy that lacks the repo root simply skips that (try/catch read). | | `/docs//llms.txt` | One page's raw markdown. Every topic gets one via the `app/docs/[topic]/llms.txt/route.ts` dynamic route. | diff --git a/test/docs/llms.test.mjs b/test/docs/llms.test.mjs index 68d7f9309..122ea8527 100644 --- a/test/docs/llms.test.mjs +++ b/test/docs/llms.test.mjs @@ -52,7 +52,7 @@ describe('docs /llms.txt (the index)', () => { assert.match(r.headers.get('content-type') || '', /text\/plain/); const body = await r.text(); assert.ok(body.startsWith('# '), 'body should start with a markdown H1'); - assert.match(body, /^# webjs documentation/); + assert.match(body, /^# WebJs documentation/); }); test('index lists known doc topics with absolute https URLs', async () => {