Opened 7 hours ago

Closed 7 hours ago

#36826 closed Uncategorized (duplicate)

Add "copy to clipboard" button to documentation code blocks

Reported by: VidhiKathiriya05 Owned by:
Component: Uncategorized Version: 6.0
Severity: Normal Keywords: javascript, UX, docs, clipboard
Cc: Nilesh Pahari Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

Added a "copy to clipboard" button to all code blocks in the documentation. This improves the developer experience by allowing users to quickly copy examples. The implementation uses a lightweight JavaScript utility to handle the clipboard interaction and includes CSS styling to ensure the button matches the Django documentation theme.

Change History (3)

comment:1 by Nilesh Pahari, 7 hours ago

Could you please point out which documentation sections are missing this functionality? (I checked a few sections and found that code blocks already have a copy button)

comment:2 by Nilesh Pahari, 7 hours ago

Cc: Nilesh Pahari added

comment:3 by Simon Charette, 7 hours ago

Resolution: duplicate
Status: newclosed

Duplicate of #34846 (Add "Copy" button to the code snippets in docs.)

Note: See TracTickets for help on using tickets.
Back to Top