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

updates: - [github.com/PyCQA/flake8: 4.0.1 → 5.0.4](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.4) - [github.com/psf/black: 22.6.0 → 22.10.0](https://github.com/psf/black/compare/22.6.0...22.10.0)

This makes the copybutton remain on the screen when the `.success` class is still present. It also staggers the timout of when `success` is removed to be *before* the icon...

### Describe the bug This is a minor UX bug, but the copybutton hides itself a bit too aggressively when you move out of the code cell while the "green...

bug

In the [`sphinx_rtd_theme`](https://github.com/readthedocs/sphinx_rtd_theme) I was using the `:linenos:` option for the [`literalinclude` directive](https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-literalinclude) to display line numbers for my code blocks. However, when using the `copybutton` extenstion for users to...

### Describe the bug **Context** This is the duplicate question from this [Github report](https://github.com/readthedocs/readthedocs.org/issues/7100) **Error** [Error in RTD](https://readthedocs.org/projects/sdtv001/builds/16952159/) `Could not import extension sphinx_copybutton (exception: No module named 'sphinx_copybutton')` **Issue** I...

bug

### Describe the problem I am using is **sphinx_book_theme**. When I try to use copy button to copy the text, however, the linenos also included. I just want to use...

enhancement

### Describe the problem/need and solution **Context** We are logging copy events in documentation built with sphinx. We can clumsily capture these events by listening to all click events on...

enhancement

### Describe the problem Basically, there’s no copy button added on plain pre blocks that are not highlighted. ### Link to your repository or website _No response_ ### Steps to...

bug

When I try to use regular expressions in the copybutton_prompt_text field (with copybutton_remove_prompts and copybutton_prompt_is_regex set to True), sphinx-copybutton does not remove prompts. To reproduce the behavior: 1. Set conf.py...

bug

**Describe the bug** When we copy a code block with emphasize-lines it adds an additional carrier return to the copied text **To Reproduce** Steps to reproduce the behavior: 1. Create...

bug