Installation
python3 -m pip install extras_require --user
First add the required channels
conda config --add channels https://conda.anaconda.org/domdfcoding
conda config --add channels https://conda.anaconda.org/conda-forge
Then install
conda install extras_require
python3 -m pip install git+https://github.com/sphinx-toolbox/extras_require@master --user
Enable extras_require
by adding the following
to the extensions
variable in your conf.py
:
extensions = [
...
'sphinx-prompt',
'sphinxcontrib.extras_require',
]
For more information see https://www.sphinx-doc.org/en/master/usage/extensions#third-party-extensions .