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

Copy button does not show up for productionlist

Open pradyunsg opened this issue 2 years ago • 1 comments

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 reproduce

See pages in docs.python.org/3/reference, for an example of the markup. Most packages have a section noting the grammar, that don’t use highlighting, and won’t get a copy button.

The version of Python you're using

N/A

Your operating system

N/A

Versions of your packages

No response

Additional context

No response

pradyunsg avatar Jan 19 '22 07:01 pradyunsg

If I recall, the reason that we didn't select for plain ol' pre is because I thought that might be a tad aggressive and add buttons that people didn't want. Instead this could be worked around for people that want pre by defining your own CSS selector: https://sphinx-copybutton.readthedocs.io/en/latest/#configure-the-css-selector-used-to-add-copy-buttons

choldgraf avatar Feb 03 '22 19:02 choldgraf