mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
6d7a0ed93b660e41e44ffb6a5e153c5197b33d56
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.
Merge pull request #10318 from shadcn-ui/dependabot/npm_and_yarn/templates/start-monorepo/vite-7.3.2
shadcn/ui
A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code. Use this to build your own component library.
Documentation
Visit https://ui.shadcn.com/docs to view the documentation.
Contributing
Please read the contributing guide.
License
Licensed under the MIT license.
Description
Languages
TypeScript
89.4%
MDX
7%
CSS
3.5%
JavaScript
0.1%
