feat: implement copy button UI (#7698)#7710
Conversation
|
@Rajankannaujiya is attempting to deploy a commit to the OpenJS Foundation Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @Rajankannaujiya nice work. Could you sign the CLA? |
Thank you @evenstensberg , I have Signed the CLA. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Rajankannaujiya could you add an example of a code snippet using copy button? |
@evenstensberg Could you tell me where I should write the example? I’m thinking of putting it in src/contents/concepts/output.mdx. Is that the right place? |
|
Just pick one code block you want and lets see if this pr is good or not |
@evenstensberg I added an example of a code snippet using copy button in the src/contents/concepts/output.mdx file. |
evenstensberg
left a comment
There was a problem hiding this comment.
Good stuff, thanks for the PR!
Thank you! Glad to contribute to the webpack documentation |
Summary
This PR implements a copy button UI for code blocks across the documentation. It enhances user experience by allowing users to quickly copy code snippets with a single click. Additionally, minor updates were made to the mdx-components.js file to ensure proper integration with the new component.
What kind of change does this PR introduce?
Did you add tests for your changes?
Does this PR introduce a breaking change?