diff --git a/.changeset/tidy-moons-report.md b/.changeset/tidy-moons-report.md new file mode 100644 index 00000000..e634e6a5 --- /dev/null +++ b/.changeset/tidy-moons-report.md @@ -0,0 +1,7 @@ +--- +'@pmndrs/docs': patch +--- + +Read `react-postprocessing` and `a11y` in `browse` and over MCP. Both sites publish a +`llms-full.txt` now — react-postprocessing has for a while, a11y since its build moved to v4 — +so the flag was simply behind the world. diff --git a/src/app/api/[transport]/route.test.ts b/src/app/api/[transport]/route.test.ts index e449e290..99bf6859 100644 --- a/src/app/api/[transport]/route.test.ts +++ b/src/app/api/[transport]/route.test.ts @@ -197,7 +197,14 @@ describe('MCP Route Handler', () => { .filter(([, lib]) => 'llms_full' in lib && lib.llms_full) .map(([libname]) => libname) - expect(exposed).toEqual(['react-three-fiber', 'drei', 'zustand', 'docs']) + expect(exposed).toEqual([ + 'react-three-fiber', + 'drei', + 'zustand', + 'a11y', + 'react-postprocessing', + 'docs', + ]) }) it('should exclude pmndrs.github.io libraries that publish no llms-full.txt', async () => { @@ -206,15 +213,7 @@ describe('MCP Route Handler', () => { // Regression: these are hosted on pmndrs.github.io but are not built with this // generator, so `${docs_url}/llms-full.txt` 404s. Selecting on the host alone // used to expose them with a silently empty index. - for (const libname of [ - 'a11y', - 'react-postprocessing', - 'uikit', - 'xr', - 'prai', - 'viverse', - 'leva', - ] as const) { + for (const libname of ['uikit', 'xr', 'prai', 'viverse', 'leva'] as const) { const lib = libs[libname] expect(lib.docs_url).toContain('pmndrs.github.io') expect('llms_full' in lib && lib.llms_full).toBeFalsy() diff --git a/src/libs.ts b/src/libs.ts index 09ca2fc8..f19aa368 100644 --- a/src/libs.ts +++ b/src/libs.ts @@ -67,12 +67,14 @@ export const libs = { github: 'https://github.com/pmndrs/react-three-a11y', description: '@react-three/a11y brings accessibility to webGL with easy-to-use react-three-fiber components', + llms_full: true, }, 'react-postprocessing': { title: 'React Postprocessing', docs_url: 'https://pmndrs.github.io/react-postprocessing', github: 'https://github.com/pmndrs/react-postprocessing', description: 'React Postprocessing is a postprocessing wrapper for @react-three/fiber', + llms_full: true, }, uikit: { title: 'uikit',