Reference

Collapse directive

.. collapse:: <heading>
:class_name: (string)

The HTML class name that wraps the collapse element. By default, this is sphinx_collapse.

:icon: (string)

The HTML class name that defines the collapse icon. By default, this is set to sphinx_collapse_icon. To specify multiple classes, separate the class names with a space, e.g. :icon: fa fa-caret-down.