Skip to content

Commit

Permalink
Support for ShadowPropTypesIOS
Browse files Browse the repository at this point in the history
Summary:
Fixes #5748

<img width="1179" alt="screen shot 2016-02-04 at 12 08 07 pm" src="https://cloud.githubusercontent.com/assets/197597/12828197/340f7d5e-cb38-11e5-84b5-8dde48014100.png">
Closes #5763

Reviewed By: svcscm

Differential Revision: D2902270

Pulled By: vjeux

fb-gh-sync-id: bde9beaa869f9fe6d610e7bdf8f16bc3f4a08c7a
  • Loading branch information
vjeux authored and facebook-github-bot-7 committed Feb 4, 2016
1 parent 4326b01 commit 736e900
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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),
Expand All @@ -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'))
);
};

0 comments on commit 736e900

Please sign in to comment.