show the docstring for a type before the formatted sample values

--HG--
extra : source : e5fa8d5e8dc27b91fca92e8b3a109981f2ed37b0
This commit is contained in:
Doug Hellmann 2012-12-05 13:06:58 -05:00
parent 4fb26f6f2d
commit 322dca63c5

View File

@ -194,6 +194,8 @@ class TypeDocumenter(autodoc.ClassDocumenter):
return False
def add_content(self, more_content, no_docstring=False):
super(TypeDocumenter, self).add_content(
more_content, no_docstring)
protocols = get_protocols(
self.options.protocols or self.env.app.config.wsme_protocols
)
@ -220,8 +222,6 @@ class TypeDocumenter(autodoc.ClassDocumenter):
self.add_line(line, u'<wsme.sphinxext')
self.add_line(u'', '<wsme.sphinxext>')
super(TypeDocumenter, self).add_content(
more_content, no_docstring)
class AttributeDocumenter(autodoc.AttributeDocumenter):