[autodocs] add doc blocks to more things
This commit is contained in:
parent
be6a3dcb75
commit
dfdef9a02a
|
@ -423,7 +423,8 @@ function getClassData(node, state, source, commentsForFile, linesForFile) {
|
|||
});
|
||||
var data = {
|
||||
name: node.id.name,
|
||||
methods: methods
|
||||
docblock: getDocBlock(node, commentsForFile, linesForFile),
|
||||
methods: methods,
|
||||
};
|
||||
if (node.superClass && node.superClass.type === Syntax.Identifier) {
|
||||
data.superClass = node.superClass.name;
|
||||
|
|
|
@ -328,6 +328,9 @@ var APIDoc = React.createClass({
|
|||
class {cls.name}
|
||||
</Header>
|
||||
<ul>
|
||||
{cls.docblock && <Marked>
|
||||
{this.removeCommentsFromDocblock(cls.docblock)}
|
||||
</Marked>}
|
||||
{this.renderMethods(cls.methods)}
|
||||
{this.renderProperties(cls.properties)}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue