-
Add the component.tsx file in
registry/uiand update theregistry/registry-ui.tsfile. -
Add the example component in
registry/exampleand update theregistry/registry-examples.tsfile. -
Now regenerate the
__registry__/index.tsxusing this command.
pnpm run build:registryNote: If you are running this for the first time they you need to create the
__registry__folder mannually.
-
Now create a
component.mdxfile incontent/docs/components. -
Now bulid the contentlayer using this command.
pnpm run bulid:docs- At last update the
config/docs.ts. to update the sidebar.
-
Create a template.mdx file in
content/templatesfolder. -
Then rebuild the
.contentlayerusing this command-
pnpm run bulid:docs