Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 552 Bytes

File metadata and controls

35 lines (22 loc) · 552 Bytes

collapse

This directive hides or unhides a part of the documentation, usually snippets of code. The user can click on a button to fold or unfold a section.

Usage

In conf.py:

extensions = [ ...
    'sphinx_runpython.collapse',
]

collapse

.. collapse::

    Show or hide a part of the documentation.
.. collapse::

    Show or hide a part of the documentation.

Directive

.. autoclass:: sphinx_runpython.collapse.sphinx_collapse_extension.CollapseDirective