'Sphinx makes html documentation but not latex

I feel like I must be missing something obvious here, but I'm using sphinx to document my python code, and it works more or less fine in making the html documentation:

sphinx-build -b html . ../dochtml

Using this I get html files that contain all the documentation that I would expect to see.

However when I try to make latex documentation:

sphinx-build -b latex . ../doclatex

It makes the doclatex directory with a bunch of .sty and other files, and with a .tex file, but if you look at the .tex file it just contains essentially the "index.html" page from the html docs. What do I need to do to make the whole documentation?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source