Obtain sphinx-jsonschema by installing it with pip:

sudo pip install sphinx-jsonschema

Then add it to your project by editing the file and append ‘sphinx-jsonschema’ to the extensions array.

extensions = [

Source code

The source code for this extension can be found on GitHub.

Docker image

A Docker image containing Sphinx and a number of extensions, including sphinx-jsonschema, can be found at Extended Sphinx. This Docker image is generated from the Dockerfile on Github.