Skip to content

Proposal to add copy button to code examples #107024

Open
@churnikov

Description

@churnikov

Documentation

Hi!

I'd like to suggest adding copy button to the code blocks in the documentation.

issue

Right now, when I'm coming the docs pages I don't see any copy button for code examples. That leads one to manually selecting code and then pressing cmd+c. That is inconvenient, especially considering that there are packages like this one: https://sphinx-copybutton.readthedocs.io/en/latest/index.html

If I cannot add new dependency, there is manual option as well
https://chrisholdgraf.com/blog/2018/sphinx-copy-buttons/

Setup

MacOS ventura
Browsers: Firefox and Chrome

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions