sphinx-togglebutton is a small Sphinx extension to make it possible to add a "toggle button" to sections of your page. This allows you to:
- Collapse Sphinx admonitions (notes, warnings, etc.) so that their content is hidden until users click a toggle button.
- Collapse arbitrary chunks of content on your page with a collapse directive.
The default version is to display the collapsed variant of the element.
Note
This is my note.
You may also show the content by default.
Note
This is my note.
You can also use containers to add arbitrary toggle-able code. For example, here's a container with an image inside.