Skip to content

Commit 0b5aced

Browse files
authored
docs(registry): update install commands to jalco/ namespace (#5)
docs(registry): update install commands to use jalco/ namespace Now an official shadcn registry. Install commands change from: npx shadcn@latest add https://ui.justinlevine.me/r/code-line.json to: npx shadcn@latest add jalco/code-line Updated: install-command component, component-docs-page, prompts, installation page, ai-copy-button docs, and README. Co-authored-by: Justin Levine <20596508+justinlevinedotme@users.noreply.github.com>
1 parent fcf963c commit 0b5aced

6 files changed

Lines changed: 14 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Components are polished, composable, and built for React and Tailwind CSS. Insta
2222
## Install
2323

2424
```bash
25-
npx shadcn@latest add https://ui.justinlevine.me/r/[component].json
25+
npx shadcn@latest add jalco/[component]
2626
```
2727

2828
Browse all components at [ui.justinlevine.me/docs](https://ui.justinlevine.me/docs).

app/docs/components/ai-copy-button/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const sampleContent = `# Getting Started with jalco ui
1818
Install the registry component you need:
1919
2020
\`\`\`bash
21-
npx shadcn@latest add https://ui.justinlevine.me/r/ai-copy-button.json
21+
npx shadcn@latest add jalco/ai-copy-button
2222
\`\`\`
2323
2424
Then import and use it in your project.`

app/docs/installation/page.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default async function InstallationPage() {
8383
CLI to add any component from the registry:
8484
</p>
8585
<CodeLine
86-
code="npx shadcn@latest add https://ui.justinlevine.me/r/github-stars-button.json"
86+
code="npx shadcn@latest add jalco/github-stars-button"
8787
language="bash"
8888
/>
8989
<p className="text-sm text-muted-foreground">This will:</p>
@@ -112,16 +112,19 @@ export default async function InstallationPage() {
112112
</section>
113113

114114
<section className="flex flex-col gap-4">
115-
<h2 className="text-xl font-semibold tracking-tight">Registry URL</h2>
115+
<h2 className="text-xl font-semibold tracking-tight">Registry</h2>
116116
<p className="text-sm text-muted-foreground">
117-
The base registry URL is:
117+
jalco ui is listed in the official shadcn registry. All components use
118+
the{" "}
119+
<code className="rounded bg-muted px-1 py-0.5 text-xs">jalco</code>{" "}
120+
namespace:
118121
</p>
119-
<CodeLine code="https://ui.justinlevine.me/r/" language="bash" />
122+
<CodeLine code="npx shadcn@latest add jalco/{component-name}" language="bash" />
120123
<p className="text-sm text-muted-foreground">
121-
Individual component payloads are available at:
124+
You can also install directly from the registry URL:
122125
</p>
123126
<CodeLine
124-
code="https://ui.justinlevine.me/r/{component-name}.json"
127+
code="npx shadcn@latest add https://ui.justinlevine.me/r/{component-name}.json"
125128
language="bash"
126129
/>
127130
</section>

components/docs/component-docs-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function ComponentDocsPage({
5050

5151
const pageSummary = `# ${title}\n\n${description}${
5252
registryName
53-
? `\n\n## Install\n\nnpx shadcn@latest add https://ui.justinlevine.me/r/${registryName}.json`
53+
? `\n\n## Install\n\nnpx shadcn@latest add jalco/${registryName}`
5454
: ""
5555
}`
5656

components/docs/install-command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface InstallCommandProps {
1414
* Uses statically bundled SVG icons — no build-time API calls.
1515
*/
1616
export function InstallCommand({ name, className }: InstallCommandProps) {
17-
const npmCommand = `npx shadcn@latest add https://ui.justinlevine.me/r/${name}.json`
17+
const npmCommand = `npx shadcn@latest add jalco/${name}`
1818

1919
return (
2020
<CodeBlockCommand

lib/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function generateInstallationPrompt(): string {
148148
"## How to install a component",
149149
"",
150150
"```bash",
151-
"npx shadcn@latest add https://ui.justinlevine.me/r/{component-name}.json",
151+
"npx shadcn@latest add jalco/{component-name}",
152152
"```",
153153
"",
154154
"Replace `{component-name}` with the component name from the list below.",

0 commit comments

Comments
 (0)