[Numpy-discussion] Extending documentation to c code

Pauli Virtanen pav at iki.fi
Wed May 26 10:14:23 EDT 2010


Wed, 26 May 2010 07:15:08 -0600, Charles R Harris wrote:
> On Wed, May 26, 2010 at 2:59 AM, Pauli Virtanen <pav at iki.fi> wrote:
> 
>> Wed, 26 May 2010 06:57:27 +0900, David Cournapeau wrote: [clip:
>> doxygen]
>> > It is yet another format to use inside C sources (I don't think
>> > doxygen supports rest), and I would rather have something that is
>> > similar, ideally integrated into sphinx. It also generates rather
>> > ugly doc by default,
>>
>> Anyway, we can probably nevertheless just agree on a readable
>> plain-text/ rst format, and then just use doxygen to generate the docs,
>> as a band-aid.
>>
>> http://github.com/pv/numpycdoc
>
> Neat. I didn't quite see the how how you connected the rst documentation
> and doxygen.

I didn't :)

But I just did: doing this it was actually a 10 min job since Doxygen 
accepts HTML -- now it parses the comments as RST and renders it properly 
as HTML in the Doxygen output. Of course getting links etc. to work would 
require more effort, but that's left as an exercise for someone else to 
finish.

	Pauli




More information about the NumPy-Discussion mailing list