From dfdef9a02a3ec070ee529da337ff6c589cff0be2 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 3 Sep 2015 11:52:55 -0700 Subject: [PATCH] [autodocs] add doc blocks to more things --- website/jsdocs/jsdocs.js | 3 ++- website/layout/AutodocsLayout.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/website/jsdocs/jsdocs.js b/website/jsdocs/jsdocs.js index a4d763693..16ba47eae 100644 --- a/website/jsdocs/jsdocs.js +++ b/website/jsdocs/jsdocs.js @@ -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; diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index fc54c1431..0707c02f1 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -328,6 +328,9 @@ var APIDoc = React.createClass({ class {cls.name}