Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/tidy-moons-report.md
Original file line number Diff line number Diff line change
@@ -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.
19 changes: 9 additions & 10 deletions src/app/api/[transport]/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/libs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading