snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
10
apps/v4/app/(app)/(create)/lib/devtools.ts
Normal file
10
apps/v4/app/(app)/(create)/lib/devtools.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { type BaseName } from "@/registry/config"
|
||||
|
||||
export function getDocsPathForItem(base: BaseName, item: string) {
|
||||
if (item.endsWith("-example")) {
|
||||
const component = item.slice(0, -"-example".length)
|
||||
return `/docs/components/${base}/${component}`
|
||||
}
|
||||
|
||||
return "/docs/components"
|
||||
}
|
||||
Reference in New Issue
Block a user