fuma-nama / fumadocs

The beautiful docs framework with Next.js. Alternative to Nextra
https://fumadocs.vercel.app
MIT License
1.89k stars 115 forks source link

feat(CLI): Add a command to update fumadocs #1082

Closed SaadBazaz closed 1 day ago

SaadBazaz commented 3 days ago

What problem will this feature address?

It'd be awesome to have a command like pnpm fumadocs update to update all relevant dependencies and components of fumadocs in one go. It's especially good for devs who haven't really messed around with the components and just want easy updates and compatibility.

Describe the solution you'd like

update command in fumadocs CLI.

Describe alternatives you've considered

Manually updating the dependencies.

Additional context

No response

fuma-nama commented 3 days ago

do you mean to update installed components or simply the dependencies in package.json? You can always use pnpm update -i --latest to update dependencies.

Updating installed components (e.g. installed with fumadocs add tabs) isn't possible as each iteration of a minor release may introduce changes to existing components, and after user-land modification it is no longer able to auto-update without losing your custom styles