Merge "Parse RST in plug-in class docs"

This commit is contained in:
Jenkins 2014-08-08 20:23:43 +00:00 committed by Gerrit Code Review
commit 380cac6eae

View File

@ -14,6 +14,7 @@
import itertools
from docutils import core
from docutils import nodes
import pydoc
from sphinx.util.compat import Directive
@ -66,8 +67,9 @@ class ResourcePages(Directive):
cls_doc = pydoc.getdoc(resource_class)
if cls_doc:
para = nodes.paragraph('', cls_doc)
section.append(para)
# allow for rst in the class comments
cls_nodes = core.publish_doctree(cls_doc).children
section.extend(cls_nodes)
self.contribute_properties(section)
self.contribute_attributes(section)