Add Copy-to-Clipboard Functionality for Code Blocks in Documentation #9829
Replies: 1 comment
-
|
Just to close this discussion, this was merged in #9830 and it's now provided out of the box by our new theme. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi maintainers,
I’d like to propose a documentation-only improvement to enhance usability: adding a “Copy” button to code blocks. This allows users to quickly copy example code without modifying the DRF library or API.
A simple implementation using CSS and JavaScript can achieve this, and it can be integrated via mkdocs.yml without affecting functionality.
Screenshot attached below for reference.
This change aligns with the current focus on documentation improvements. I’m happy to submit a PR if the maintainers support this enhancement.

Pull Request- #9830
Screenshots:
Beta Was this translation helpful? Give feedback.
All reactions