From 736e90053243a03c48c00f072a2f3bbbdcb07567 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 4 Feb 2016 15:45:34 -0800 Subject: [PATCH] Support for ShadowPropTypesIOS Summary: Fixes https://github.com/facebook/react-native/issues/5748 screen shot 2016-02-04 at 12 08 07 pm Closes https://github.com/facebook/react-native/pull/5763 Reviewed By: svcscm Differential Revision: D2902270 Pulled By: vjeux fb-gh-sync-id: bde9beaa869f9fe6d610e7bdf8f16bc3f4a08c7a --- website/server/extractDocs.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/website/server/extractDocs.js b/website/server/extractDocs.js index 8d8abba0b..26c4eb752 100644 --- a/website/server/extractDocs.js +++ b/website/server/extractDocs.js @@ -252,9 +252,13 @@ var apis = [ '../Libraries/Vibration/VibrationIOS.ios.js', ]; -var styles = [ +var stylesWithPermalink = [ '../Libraries/StyleSheet/LayoutPropTypes.js', '../Libraries/StyleSheet/TransformPropTypes.js', + '../Libraries/Components/View/ShadowPropTypesIOS.js', +]; + +var stylesForEmbed = [ '../Libraries/Components/View/ViewStylePropTypes.js', '../Libraries/Text/TextStylePropTypes.js', '../Libraries/Image/ImageStylePropTypes.js', @@ -266,10 +270,10 @@ var polyfills = [ var all = components .concat(apis) - .concat(styles.slice(0, 2)) + .concat(stylesWithPermalink) .concat(polyfills); -var styleDocs = styles.slice(2).reduce(function(docs, filepath) { +var styleDocs = stylesForEmbed.reduce(function(docs, filepath) { docs[path.basename(filepath).replace(path.extname(filepath), '')] = docgen.parse( fs.readFileSync(filepath), @@ -289,7 +293,7 @@ module.exports = function() { return [].concat( components.map(renderComponent), apis.map(renderAPI('api')), - styles.slice(0, 2).map(renderStyle), + stylesWithPermalink.map(renderStyle), polyfills.map(renderAPI('Polyfill')) ); };