discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.44k stars 3.97k forks source link

feat: install button with dropdown for npm, pnpm, yarn and bun #10504

Open mathisdev7 opened 2 months ago

mathisdev7 commented 2 months ago

This PR modifies a documentation component to enhance the install button functionality. The dropdown now includes npm, pnpm, yarn, and bun, allowing users to easily copy the installation command for their preferred package manager. This update improves the flexibility and user experience for developers consulting the documentation.

Status and versioning classification:

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2024 10:50am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **discord-js-guide** | ⬜️ Ignored ([Inspect](https://vercel.com/discordjs/discord-js-guide/G5VFzRVrrfuZLKHqgVqXCF9xQfuz)) | [Visit Preview](https://discord-js-guide-git-fork-mathisdev7-feature-c-de9d0d-discordjs.vercel.app) | | Sep 14, 2024 10:50am |
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 55 lines in your changes missing coverage. Please review.

Project coverage is 35.37%. Comparing base (495bc60) to head (b8afd59).

Files with missing lines Patch % Lines
apps/website/src/components/ui/InstallButton.tsx 0.00% 55 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10504 +/- ## ========================================== - Coverage 35.48% 35.37% -0.11% ========================================== Files 228 228 Lines 14308 14351 +43 Branches 1254 1254 ========================================== Hits 5077 5077 - Misses 9187 9230 +43 Partials 44 44 ``` | [Flag](https://app.codecov.io/gh/discordjs/discord.js/pull/10504/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=discordjs) | Coverage Δ | | |---|---|---| | [website](https://app.codecov.io/gh/discordjs/discord.js/pull/10504/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=discordjs) | `0.00% <0.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=discordjs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mathisdev7 commented 2 months ago

Reviewed the PR, can you check if it is good please, thanks.