Skip to content

Conversation

@danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This updates the documentation to use the nuxi module add command which should simplify docs a bit and also improve user experience as there's no need to add to nuxt.config manually.

It's documented here.

I may have missed a few spots in the documentation as I'm doing this across the modules ecosystem assisted by the power of regular expressions ✨, so I'd appreciate a review πŸ™

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@shinGangan
Copy link
Contributor

shinGangan commented Apr 4, 2024

Hi @danielroe , thanks for this PR.
I was discussing the same issue here -> #1554

Nuxt has an excellent starter called Nuxt Starter along with Nuxt CLI.
I think this section should write nuxi init -t ui along with nuxi module add ui.

I would like to give an option to those who are new to Nuxt UI (I often use nuxi init -t ui).

I would like to hear @danielroe 's opinion on this.

(I was thinking of adding a section to this document.
So if I am adding nuxi init -t ui, we might want to separate the PRs. πŸ€”)

@danielroe
Copy link
Member Author

Yes, I think it's a good idea to separate the PRs (or you could open a PR to my branch and we could combine it if you prefer). Apologies for shadowing your idea - it was a good one. πŸ™

npx nuxi@latest module add ui
```

Then, register the module in your `nuxt.config.ts`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielroe I assume we can remove this section about adding it to nuxt.config.ts, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can. Unless you want to mention that you can configure it there.

@shinGangan
Copy link
Contributor

Yes, I think it's a good idea to separate the PRs (or you could open a PR to my branch and we could combine it if you prefer). Apologies for shadowing your idea - it was a good one. πŸ™

@danielroe , thanks for the response.

Then I woud like to open a PR on my end later.
(That way this PR will be less complicated and easier to review).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants