Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): copy to clipboard button #4037

Merged
merged 1 commit into from
Feb 2, 2025
Merged

Conversation

shivarm
Copy link
Contributor

@shivarm shivarm commented Feb 1, 2025

This PR will add simple click to copy button to all preformatted code blocks to effortlessly allow users to copy example code from the docs and format code

close: #4035

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@shivarm
Copy link
Contributor Author

shivarm commented Feb 1, 2025

@mcollina would you like to dark and light mode button in docs? then will open another pr

@mcollina
Copy link
Member

mcollina commented Feb 2, 2025

go for it

@mcollina mcollina merged commit a9176c9 into nodejs:main Feb 2, 2025
10 of 30 checks passed
@shivarm shivarm deleted the copy-clipboard branch February 3, 2025 15:23
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.

Add copy to clipboard for code blocks
3 participants