-
Notifications
You must be signed in to change notification settings - Fork 56
Description
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
But instead nothing happens. There are no error messages in the browser. The code is within div.highlight pre selector, so the copy button should be present.
problem
Looking at the code, it seems that window.ClipboardJS is not initialized for some reason and that blocks adding copy buttons:
| if (window.ClipboardJS === undefined) { |
I have no clue why it fails to load, but maybe it's time to drop this code and use
navigator.clipboard.writeText directly as described in #97?
Reproduce the bug
I currently have no clue how to reproduce this outside our documentation. The source code is here: https://github.com/WeblateOrg/weblate/tree/main/docs
List your environment
furo==2023.03.27
pygments==2.15.0
Sphinx==6.1.3
sphinx-copybutton==0.5.1
sphinx-jsonschema==1.19.1
sphinxcontrib-httpdomain==1.8.1
sphinxext-opengraph==0.8.1