Use sphinx-design
for our {toggle}
directive and eventually deprecate it
#50
Labels
enhancement
New feature or request
Context
Currently we use JavaScript to look for classes and convert objects with those classes into a toggle-able admonition or
details
block. This is what we use in MyST-NB to show/hide cells.However, sphinx-design has its own dropdown directive that has more functionality and flexibility. It is unnecessary for us to maintain our own custom directive here as well as in Sphinx Design.
Proposal
I propose that we consider phasing out the direct use of the
{toggle}
directive here, by doing the following things:{toggle}
re-use Sphinx Design by default{toggle}
directive.Eventually we might even be able to deprecate this whole package if we can get the same functionality via sphinx-design and myst-nb.
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: