On 17/11/13 15:06, Txema Vicente wrote:
> [...]
> 
> But sphinx does not read the docstring, see sphinx.ext.autodoc.py line
> 1206:
> # if it's not a data descriptor, its docstring is very probably the
> wrong thing to display
> no_docstring = True
> 
> If I remove this, the doctring appears at the docs, but I dont know why
> is this. I'm on it.

OK, thanks for your help.

> 
> You can try this:
> 
> # Attribute documentation patch
> from sphinx.ext.autodoc import ClassLevelDocumenter, AttributeDocumenter
> 
> def fix_add_content(self, more_content, no_docstring=False):
>     # See sphinx.ext.autodoc.py line 1206
>     ClassLevelDocumenter.add_content(self, more_content, no_docstring=False)
> 
> AttributeDocumenter.add_content = fix_add_content
> 

Cool, thanks! Your patch works perfect with sphinx 1.1.3.

Shall I include it in our repo?

Regards,

Juan

-- 
jjm's home: http://www.usebox.net/jjm/
blackshell: http://blackshell.usebox.net/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-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 http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to