[SciPy-dev] Status of the doc format for scipy code ?
David Huard
david.huard@gmail....
Thu Apr 26 09:31:40 CDT 2007
epydoc orders the elements of the docstring according to an hard-coded list.
Here is a small patch to epydoc that lets you insert examples as
:Example:
an example here
>>> trythis(a)
[3,4,5]
There is certainly a better way to achieve this but I'm still not aware of
it.
HTH,
David
2007/4/26, David Cournapeau <david@ar.media.kyoto-u.ac.jp>:
>
> David Huard wrote:
> > Here is a patch to the latest docutils svn implementing the math role
> > from Jens.
> >
> > You can look at docutils/sandbox/jens/latex-math/test/test.txt for an
> > example. Note that I changed the name of the role from latex-math to
> > math, so you'll have to replace occurrences of latex-math by math.
> > Then run
> >
> > rst2latex test.txt | pdflatex
> Thanks, this is working great ! I have another questions regarding
> epydoc's usage. First, when I have a Examples section in my docstring,
> it is put before :Parameters: in the output html, even if I put the
> example section after in the docstring. Why is that ?
>
> David
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20070426/54a85efe/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.patch
Type: text/x-patch
Size: 3919 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20070426/54a85efe/attachment-0001.bin
More information about the Scipy-dev
mailing list