Skip to content

doc: use trusted registry URIs#199

Merged
sadmann7 merged 2 commits intosadmann7:mainfrom
franky47:doc/shadcn-trusted-registry
Dec 3, 2025
Merged

doc: use trusted registry URIs#199
sadmann7 merged 2 commits intosadmann7:mainfrom
franky47:doc/shadcn-trusted-registry

Conversation

@franky47
Copy link
Copy Markdown
Contributor

@franky47 franky47 commented Dec 2, 2025

This writes each item to /public/r/{name}.json with contents, in order for the shadcn CLI to resolve those paths when using the trusted registry URI:

npx shadcn@latest add @diceui/{name}

Note: the trusted registry is declared here: https://ui.shadcn.com/docs/directory?q=diceui

Note: this was a feedback mentioned in @TheOrcDev's live stream where DiceUI was reviewed.

This writes each item to `/public/r/{name}.json` with contents,
in order for the shadcn CLI to resolve those paths when using the
trusted registry URI (`@diceui/{name}`).
Copilot AI review requested due to automatic review settings December 2, 2025 16:08
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Dec 2, 2025

@franky47 is attempting to deploy a commit to the sadmann7 Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the documentation to use trusted registry URIs for the shadcn CLI, enabling shorter installation commands (e.g., npx shadcn@latest add @diceui/{name} instead of full URLs). The build script now writes registry items to both /public/r/styles/{style}/{name}.json (existing behavior) and /public/r/{name}.json (new root-level files for trusted registry resolution).

Key changes:

  • Build script writes each registry item to /public/r/{name}.json for trusted registry URI support
  • Documentation files updated from URL-based format to @diceui/ scoped package format
  • Code style migration to single quotes and no semicolons throughout build script

Reviewed changes

Copilot reviewed 45 out of 45 changed files in this pull request and generated no comments.

File Description
docs/scripts/build-registry.mts Added logic to write registry items to root path (/public/r/{name}.json) alongside existing styles subdirectory; migrated from double quotes/semicolons to single quotes/no semicolons
docs/public/r/.gitignore Added gitignore to exclude generated JSON files from version control
docs/content/docs/utilities/*.mdx Updated CLI installation commands from URL format to trusted registry format (@diceui/{name})
docs/content/docs/components/*.mdx Updated CLI installation commands from URL format to trusted registry format (@diceui/{name}); minor whitespace cleanup in marquee.mdx and combobox.mdx

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TheOrcDev
Copy link
Copy Markdown

For the Horde ⚔️

@sadmann7
Copy link
Copy Markdown
Owner

sadmann7 commented Dec 3, 2025

thanks a lot.

@sadmann7 sadmann7 merged commit 3cf6627 into sadmann7:main Dec 3, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants