Skip to content

Docs UX: Optional “copy to clipboard” button for code blocks #2399

@aadeina

Description

@aadeina

Hello,

While reading Django’s documentation, I noticed that code examples currently require manual text selection to copy. This isn’t a bug, but a small documentation UX improvement that could make examples easier to use, especially for beginners and mobile users.

If this is considered acceptable for Django’s documentation, I would be interested in working on a lightweight, accessible implementation and submitting a PR for review.

Please let me know if this is something the maintainers would be open to.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions