To build automatic documentation, it is recommended to install the following dependencies:
pip install .[docs]
Documentation files should be located in the docs/ directory, which must contain the docs/source/conf.py (build settings) and docs/source/index.rst (documentation main page) files.
Build documentation into HTML pages is done as follows:
python -m sphinx -T -E -W -b html -d docs/_build/doctrees -D language=en docs/source docs/_build