Update auto gen docs

* docgen -> v2.0.1 to support ES6 classes.
* Add `<Modal>` and `<ProgressViewIOS>` components to docs.
This commit is contained in:
Spencer Ahrens 2015-08-31 12:23:11 -07:00
parent 34c74eaead
commit 51b1f399be
3 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,7 @@
"mkdirp": "latest", "mkdirp": "latest",
"optimist": "0.6.0", "optimist": "0.6.0",
"react": "~0.12.0", "react": "~0.12.0",
"react-docgen": "^1.1.0", "react-docgen": "^2.0.1",
"react-page-middleware": "git://github.com/facebook/react-page-middleware.git", "react-page-middleware": "git://github.com/facebook/react-page-middleware.git",
"request": "latest" "request": "latest"
} }

View File

@ -3,7 +3,7 @@ var b = require('react-docgen/node_modules/recast').types.builders;
var docgen = require('react-docgen'); var docgen = require('react-docgen');
function stylePropTypeHandler(documentation, path) { function stylePropTypeHandler(documentation, path) {
var propTypesPath = docgen.utils.getPropertyValuePath(path, 'propTypes'); var propTypesPath = docgen.utils.getMemberValuePath(path, 'propTypes');
if (!propTypesPath) { if (!propTypesPath) {
return; return;
} }
@ -36,8 +36,8 @@ function stylePropTypeHandler(documentation, path) {
} }
function findExportedOrFirst(node, recast) { function findExportedOrFirst(node, recast) {
return docgen.resolver.findExportedReactCreateClassCall(node, recast) || return docgen.resolver.findExportedComponentDefinition(node, recast) ||
docgen.resolver.findAllReactCreateClassCalls(node, recast)[0]; docgen.resolver.findAllComponentDefinitions(node, recast)[0];
} }
function findExportedObject(ast, recast) { function findExportedObject(ast, recast) {

View File

@ -165,8 +165,10 @@ var components = [
'../Libraries/CustomComponents/ListView/ListView.js', '../Libraries/CustomComponents/ListView/ListView.js',
'../Libraries/Components/MapView/MapView.js', '../Libraries/Components/MapView/MapView.js',
'../Libraries/CustomComponents/Navigator/Navigator.js', '../Libraries/CustomComponents/Navigator/Navigator.js',
'../Libraries/Modal/Modal.js',
'../Libraries/Components/Navigation/NavigatorIOS.ios.js', '../Libraries/Components/Navigation/NavigatorIOS.ios.js',
'../Libraries/Picker/PickerIOS.ios.js', '../Libraries/Picker/PickerIOS.ios.js',
'../Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js',
'../Libraries/Components/ScrollView/ScrollView.js', '../Libraries/Components/ScrollView/ScrollView.js',
'../Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js', '../Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js',
'../Libraries/Components/SliderIOS/SliderIOS.ios.js', '../Libraries/Components/SliderIOS/SliderIOS.ios.js',