sphinx-copybutton
sphinx-copybutton copied to clipboard
Add a "copy" button to code blocks in Sphinx
It would be nice if it was possible to also copy text from parsed-literal blocks too.
I'm not planning to ever use this feature, but I still feel this should be mentioned: The option `copybutton_skip_text` seems to expect a single line of text (by default `'>>>...
Stacktrace: ``` Running Sphinx v1.6.7 ... Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/webase-doc-cattwo/envs/latest/lib/python3.7/site-packages/sphinx/cmdline.py", line 305, in main opts.warningiserror, opts.tags, opts.verbosity, opts.jobs) File "/home/docs/checkouts/readthedocs.org/user_builds/webase-doc-cattwo/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 196, in __init__ self.setup_extension(extension) File "/home/docs/checkouts/readthedocs.org/user_builds/webase-doc-cattwo/envs/latest/lib/python3.7/site-packages/sphinx/application.py",...
Idea: make it possible to copy an image on a page instead of just code
updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.3.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 23.10.1 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/23.10.1...25.12.0)
### Describe the bug When I build some documentation with sphinx-copybutton 0.4.0 and Sphinx 7.2.6 with a simple "make html" invocation, and when I open the webpage in my local...
### Context Consider the following snippet: ````markdown ```python extensions = [ ... "sphinx.ext.intersphinx", ] ``` ```` It would be nice to have the copy button strip out the elipsis there,...
Fix date of v0.5.2 release
Allows custom svg image for check button by specifying `checkbutton_image_svg`.
### Context When some block elements contains longer displays of verbatim text, it's better only render block elements a small height. Using expand button to get full height. mgeier/insipid-sphinx-theme#149 ###...