I have one single sphinx specific rst-file and would like to render it as HTML using Sphinx from within a python script. When searching for solutions all I can find is the command line interface to Sphinx.
The answer to this question Python convert sphinx RST to HTML doesn't work and seems very hackish to me.
I am imagining something like this:
import sphinx
sphinx.render(rst_file='myfile.rst', output_file='myfile.html')