Files
Ray 6d7a0ed93b fix(docs): replace <ComponentsList /> in copy-page and markdown output
The <ComponentsList /> tag on /docs/components was emitted as-is by
the Copy Page button and the /llm/[slug] markdown endpoint because
getComponentsList() walked components.children for pages directly.
After #9304 restructured the folder into components/radix/ and
components/base/ subfolders, the filter always returned [] and the
tag was replaced with an empty string (or, in the copy-page case,
never replaced at all).

- Reuse getPagesFromFolder() from lib/page-tree so the walker stays
  in sync with the on-screen ComponentsList React component.
- Match the existing llms.txt format: flat absolute URLs (the
  /docs/components/:name -> /docs/components/radix/:name redirect in
  next.config.mjs is the canonical form) plus the frontmatter
  description pulled via source.getPage() on each page.
- Export replaceComponentsList() and call it from
  docs/[[...slug]]/page.tsx so the Copy Page button goes through the
  same replacement path as processMdxForLLMs.
2026-04-08 11:50:07 -04:00
..
2026-03-26 14:36:00 +04:00
2026-01-22 17:43:45 +04:00
2025-12-12 21:01:44 +04:00
fix
2026-03-02 13:57:42 +04:00
2026-02-24 17:26:48 +04:00
2026-03-02 10:15:13 +04:00
2026-02-24 17:26:48 +04:00
2025-08-28 20:58:03 +04:00
2026-01-30 21:08:39 +04:00
2026-03-26 14:36:00 +04:00
fix
2026-02-26 16:03:56 +04:00
2026-03-26 14:36:00 +04:00
2026-03-26 14:36:00 +04:00
2025-10-29 13:37:41 +04:00
2025-12-12 21:01:44 +04:00