graspologic icon indicating copy to clipboard operation
graspologic copied to clipboard

Adding a copy button to code snippets

Open rajpratyush opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe.

well i was browsing through the tutorial section of the documentation website. I felt that a copy button was necessary in every code snippet.

Describe the solution you'd like

adding sphinx copy button extension to the documentation website.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Provide references (if applicable)

If your feature request is related to a published algorithm/idea, please provide links to any relevant articles or webpages.

Additional context

Add any other context or screenshots about the feature request here.

rajpratyush avatar Mar 15 '21 13:03 rajpratyush

@rajpratyush do you know if there's anything in the sphinx ecosystem that will do this by default? It does seem useful, and it would be useful next to every ``` block, I'd think? I don't want to do it if we have to do it manually, but if it exists as part of documentation creation it seems like an easy enough thing to add

daxpryce avatar Mar 22 '21 18:03 daxpryce

Sphinx copy button allows us to do it

rajpratyush avatar Mar 23 '21 03:03 rajpratyush

just we need to add it to our extensions in conf.py and some minor tweaks in JavaScript and it has been able to get us a copy button in each code snippet a own copy button. though would have to figure out how to make it work with ipynb files. I have tried that out yet. @dwaynepryce

rajpratyush avatar Mar 24 '21 03:03 rajpratyush

Hello @rajpratyush, I would like to contribute to this project by solving this issue. Can I?

Dhavin avatar Aug 18 '21 18:08 Dhavin