Could I use sphinx to generate documentation from script?

My goal is to generate a rst file and trasform it into pdf or html file 
using sphinx.

Pseudo - code

from sphinx import Sphinx

rst = open('test.rst', 'w')

rst.write('chapter\n')

rst.close()

s = Sphinx()

s.rst2pdf(rst)





-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to