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 Whenever I use `:emphasize-lines:` within a `.. code-block::`, the newline in between the line(s) that is emphasized and the next disappears after copy-paste via sphinx-copybutton 0.5.1....

bug

### Describe the bug **context** You _can_ configure. The _can_ should be demonstrated. **expectation** Install should produce 3rd example. Requires a Minimal Working Example. **bug** Default install strips nothing **problem**...

bug

### Describe the bug **context** When I go to https://docs.weblate.org/en/latest/api.html, the copy button is not present, while it works fine on other pages. **expectation** I expected copy button to occur....

bug

### Context I know that styling is subjective, so feel free to ignore this suggestion, but I would still like to record it. ![image](https://user-images.githubusercontent.com/37271310/218280209-e8cfe33b-0d35-4211-9c8f-59bc7ceeaa39.png) When I hover on the copy...

enhancement

From https://github.com/executablebooks/sphinx-copybutton/pull/178#issuecomment-1318492169 . ### Describe the bug There are now two ways to avoid copying prompts and output: 1) `copybutton_exclude` excludes certain CSS classes. Sphinx uses this by default to...

bug

### Describe the bug **context** Blank lines are often part of code. **expectation** Blank lines should be retained in code. **bug** But instead ___ happens Blank lines are stipped from...

bug

### Context copy/paste text to a python console requires a new line to be entered to complete entry but a trailing blank line is normally stripped by Sphinx. ### Proposal...

enhancement

Bumps [ws](https://github.com/websockets/ws) from 6.2.2 to 6.2.3. Release notes Sourced from ws's releases. 6.2.3 Bug fixes Backported e55e5106 to the 6.x release line (eeb76d31). Commits d87f3b6 [dist] 6.2.3 eeb76d3 [security] Fix...

dependencies

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...

dependencies

### Context I would like to exclude the traceback from being copied: ```python >>> 1 / 0 Traceback (most recent call last): File "", line 1, in ZeroDivisionError: division by...

enhancement