[Django] #36826: Add "copy to clipboard" button to documentation code blocks

6 views
Skip to first unread message

Django

unread,
Dec 24, 2025, 1:24:30 AM (2 days ago) Dec 24
to django-...@googlegroups.com
#36826: Add "copy to clipboard" button to documentation code blocks
-------------------------------------+-------------------------------------
Reporter: VidhiKathiriya05 | Type:
| Uncategorized
Status: new | Component:
| Uncategorized
Version: 6.0 | Severity: Normal
Keywords: javascript, UX, | Triage Stage:
docs,clipboard | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/36826>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 24, 2025, 1:32:52 AM (2 days ago) Dec 24
to django-...@googlegroups.com
#36826: Add "copy to clipboard" button to documentation code blocks
-------------------------------------+-------------------------------------
Reporter: VidhiKathiriya05 | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution:
Keywords: javascript, UX, | Triage Stage:
docs,clipboard | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Nilesh Pahari):

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)
--
Ticket URL: <https://code.djangoproject.com/ticket/36826#comment:1>

Django

unread,
Dec 24, 2025, 1:50:09 AM (2 days ago) Dec 24
to django-...@googlegroups.com
#36826: Add "copy to clipboard" button to documentation code blocks
-------------------------------------+-------------------------------------
Reporter: VidhiKathiriya05 | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution:
Keywords: javascript, UX, | Triage Stage:
docs,clipboard | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Nilesh Pahari):

* cc: Nilesh Pahari (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/36826#comment:2>

Django

unread,
Dec 24, 2025, 1:56:39 AM (2 days ago) Dec 24
to django-...@googlegroups.com
#36826: Add "copy to clipboard" button to documentation code blocks
-------------------------------------+-------------------------------------
Reporter: VidhiKathiriya05 | Owner: (none)
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution: duplicate
Keywords: javascript, UX, | Triage Stage:
docs,clipboard | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* resolution: => duplicate
* status: new => closed

Comment:

Duplicate of #34846 (''Add "Copy" button to the code snippets in docs.'')
--
Ticket URL: <https://code.djangoproject.com/ticket/36826#comment:3>
Reply all
Reply to author
Forward
0 new messages