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.

Reply via email to