nuxt / nuxt.com

The Nuxt website, made with Nuxt.
https://nuxt.com
MIT License
290 stars 145 forks source link

I think it would be more user friendly if on package manager selection, (pnpm, yarn etc.) it stores selection on localStorage and next time visiting, docs start with last package manager selection. #1501

Open manniL opened 7 months ago

manniL commented 7 months ago

I think it would be more user friendly if on package manager selection, (pnpm, yarn etc.) it stores selection on localStorage and next time visiting, docs start with last package manager selection. On another note, can it be synced with other code-group sections so on selection it automatically selects that package manager on others too.

Originally posted by @doganalper in https://github.com/nuxt/nuxt/discussions/25785

atinux commented 7 months ago

I think we can improve this by creating the components similar to undocs:

https://github.com/unjs/undocs/blob/main/layers/core/app/components/global/Pm-Install.vue