Skip to content

Conversation

@amirdaraby
Copy link

@amirdaraby amirdaraby commented Dec 12, 2025

I was reading the documentation and noticed that there is no copy button for the code examples. I think having a simple "Copy" button makes it easier to use the docs, so I added a basic implementation.

This PR adds a small button to each <pre> block. When you click it, it copies the code and shows "Copied" for a moment.

since I'm not a front-end developer, this might not be the best way to do it, but I think it's a good start.
I'm happy to improve it if needed.

@hajimehoshi
Copy link
Member

This seems nice, but let me redesign this later.

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.

2 participants