You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
We are logging copy events in documentation built with sphinx. We can clumsily capture these events by listening to all click events on a parent node, but we would prefer to add an event listener to each copybutton.
Problem / Idea
Because copy buttons are injected into the page at a non-deterministic time, there is currently no way for us to know when sphinx-copybutton has finished adding all buttons to the document.
Solution
Two potential solutions we've thought of:
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Describe the problem/need and solution
Context
We are logging copy events in documentation built with sphinx. We can clumsily capture these events by listening to all click events on a parent node, but we would prefer to add an event listener to each copybutton.
Problem / Idea
Because copy buttons are injected into the page at a non-deterministic time, there is currently no way for us to know when sphinx-copybutton has finished adding all buttons to the document.
Solution
Two potential solutions we've thought of:
window
when all buttons are addedBenefit
This would simplify the task of monitoring copybutton click events for analytics and other purposes.
Guide for implementation
We think the event or message would be triggered at the end of this for loop.
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: