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

[Question] Is it possible to override toggle button hint ?

Open vfdev-5 opened this issue 3 years ago • 1 comments

Thanks for extension, very helpful in the docs !

I wonder if it could be possible to override toggle button text once it is already configured conf.py ?

We have conf.py:

# toggle button hint text
togglebutton_hint = "Show default setup"
togglebutton_hint_hide = "Hide default setup"

and in the docstring (RST) I'd like to write another title for the button

"""Some docstring

.. toggle:: Output

    test test
"""

Thanks!

vfdev-5 avatar Sep 02 '22 09:09 vfdev-5

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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).
Welcome to the EBP community! :tada:

welcome[bot] avatar Sep 02 '22 09:09 welcome[bot]