Am 21.12.2009 10:59, schrieb George Sakkis:
> On Nov 12, 7:28 pm, Joshua Bronson <[email protected]> wrote:
> 
>> Of course, I should have figured that out! Works now, thanks :)
>>
>> On Wed, Nov 11, 2009 at 4:35 AM, Christophe de VIENNE
>> <[email protected]>wrote:
>>
>> > My mistake, it's :
>>
>> > .. attribute:: bar
>> >     your doc
>>
>> > 2009/11/11 Joshua Bronson <[email protected]>
>>
>> >> Thanks for the replies. I'll be following
>> >>http://bitbucket.org/birkenfeld/sphinx/issue/280/
>> >> :)
>>
>> >> I'd prefer Christophe's method to Edward's because it doesn't require
>> >> changing (obscuring?) your code to add your documentation, but I
>> >> couldn't get Christophe's method to work. No warnings generated or
>> >> anything, just nothing rendered for that attribute. Can anyone else
>> >> confirm whether .. attribute bar:: works?
> 
> Is the ".. attribute:: foo" directive supposed to work within
> docstrings ? It doesn't work for me. For now I'm using ":ivar foo:".

It should work in docstrings of classes.  How exactly does your
markup look and what do you get?

> By the way, is there a difference among var, ivar, cvar ? In Epydoc
> they're different but in Sphinx they all show up as "Variable".

Sphinx does treat them equally, yes.

Georg


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to