Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy button does not show up for productionlist #156

Open
pradyunsg opened this issue Jan 19, 2022 · 1 comment
Open

Copy button does not show up for productionlist #156

pradyunsg opened this issue Jan 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@pradyunsg
Copy link
Member

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 pradyunsg added the bug Something isn't working label Jan 19, 2022
@choldgraf
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants