I have been thinking about generating RST also. Is anyone using Sphinx to create RST output as Simone showed in the pseudocode?
I was wondering whether it would be better to use the docutils package ( https://pypi.python.org/pypi/docutils). Thanks for bringing this up, Simone. Peter On Wed, Feb 24, 2016 at 9:12 AM, gilberto dos santos alves <[email protected] > wrote: > hi. you could start sphinx build from your python code like any other .bat > or shell command. sphinx-build already do it for you using pass parameters. > [1] > [1] http://www.sphinx-doc.org/en/stable/man/sphinx-build.html > > 2016-02-24 10:32 GMT-03:00 simone monteleone <[email protected]>: > >> 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. >> > > > > -- > gilberto dos santos alves > +55(11)9-8646-5049 > sao paulo - sp - brasil > > > > > -- > 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. > -- 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.
