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')) ); };