Search⌘ K
AI Features

Compile to HTML: Set Up Sphinx

Explore how to install and set up Sphinx for documenting Python code, including creating project directories and activating useful extensions like autodoc, to effectively produce and organize documentation.

Installing Sphinx

To use Sphinx, we first need to install it using the following command in the terminal.

export LC_ALL=C.UTF-8 && export LANG=C.UTF-8
pipenv install --dev sphinx

Note: Here, it’s already been installed.

Sphinx comes with the tools sphinx-quickstart, sphinx-autogen, sphinx-build ...