Installation ============ .. important:: ``sphinx-collapse`` is compatible with Sphinx 3.0+ using Python 3.7+. #. Install ``sphinx-collapse`` using PIP. .. code-block:: bash pip install sphinx-collapse #. Add the extension to your Sphinx project ``conf.py`` file. .. code-block:: python extensions = ['sphinx_collapse']