1

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')
Rikard N
  • 427
  • 4
  • 16
  • 1
    Is it something like this you are looking for? https://stackoverflow.com/a/47657926/407651 – mzjn Apr 29 '20 at 11:21

0 Answers0