mirror of
https://github.com/status-im/react-native.git
synced 2025-01-30 11:14:49 +00:00
Merge pull request #2540 from sahrens/animatedDocGen
[autodocs] add doc blocks to more things
This commit is contained in:
commit
19f062d23c
@ -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…
x
Reference in New Issue
Block a user