Repository navigation
Add copy button to code blocks in documentation - #9830
Conversation
|
I may be completely wrong here, but adding new features or code formatting changes is not allowed according to the DRF policy. This would violate the DRF policy. |
Thanks for the feedback. |
browniebroke
left a comment
There was a problem hiding this comment.
Very cool! I noted a few things
|
Just tweaked the button size as I found out there was a smaller variant. Looks good to me otherwise. Thanks |
Thanks! @browniebroke The tweak looks nice 👍 |
* Add copy button to code blocks for improved documentation usability * Add copy button to code blocks for improved documentation usability * Add copy button to code blocks for improved documentation usability * Make "Copy" button smaller --------- Co-authored-by: Bruno Alla <[email protected]>
Description
Currently, code blocks in the DRF documentation must be copied manually. This PR introduces a “Copy” button for code blocks to improve usability.
Scope: Docs-only improvement — does not modify DRF library or API.
Implementation:
Files and Purpose:
Discussion - #9829
Screenshots:
