sphinx-copybutton icon indicating copy to clipboard operation
sphinx-copybutton copied to clipboard

Add a "copy" button to code blocks in Sphinx

Results 53 sphinx-copybutton issues
Sort by recently updated
recently updated
newest added

**Describe the bug** The extension overwrites the id of the `div.highlight pre` element with `codecell#` (if it already has one). The expected behaviour would be to use the id that...

bug

**Is your feature request related to a problem? Please describe.** No **Describe the solution you'd like** Adding (necessary) lines to what is copied. More precisely, I'd like to use `sphinx-copybutton`...

enhancement

**Describe the bug** Copybuttons appear on a new line at the bottom of a cell instead of the top right corner: ![Screenshot at 2020-11-06 15-51-05](https://user-images.githubusercontent.com/39047984/98380095-69d17180-2048-11eb-89b7-7fdb471f1e91.png) I don't know if it...

bug

In https://github.com/executablebooks/sphinx-book-theme/issues/248 I also uncovered a bug (I think) in sphinx-copybutton. Behavior like this: Basically, if some other HTML causes the code cell to shrink in width, the copybutton icon...

bug

**Is your feature request related to a problem? Please describe.** https://www.npmjs.com/package/clipboard-js -- clipboard.js is a deprecated package, and all the relevant APIs are available as vanilla JS in modern browsers....

enhancement

How can I make the svg image smaller using the CSS? In case of the RTD Theme the button appears huge. ![20200323_0802_ZELL](https://user-images.githubusercontent.com/1192968/77290538-ada38080-6cdc-11ea-8cc3-a719d2b3f205.png)

While derping around in the source code I saw that you manually parse the version number in your `setup.py`: https://github.com/executablebooks/sphinx-copybutton/blob/0d53ead4a580b50c595b3f95a039516fbd4c6681/setup.py#L24-L29 So I wanted to recommend [bump2version](https://github.com/c4urself/bump2version) to you. For me...

# Situation I would like to add a copy button to Python code of the following form ``` Code example ============ .. code-block:: python >>> import pandas as pd >>>...

In scikit-image, we discovered that this pluggin is working only for sphinx >= 1.8. Would it be possible to provide the min requirements in a requirements.txt file please? Thanks a...

Hello! I have been planning to use your extension when building [Python Like You Mean It](https://www.pythonlikeyoumeanit.com/), however I found that, in the Microsoft Edge browser, it collapses the code blocks...