Skip to content

Commit

Permalink
Merge pull request facebook#2946 from vjeux/fix_animated_docs
Browse files Browse the repository at this point in the history
Fix website with Animated
  • Loading branch information
vjeux committed Sep 22, 2015
2 parents 7f76f08 + 00ceec9 commit 48e0423
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ function getNameFromPath(filepath) {
return 'Transforms';
} else if (filepath === 'TabBarItemIOS') {
return 'TabBarIOS.Item';
} else if (filepath === 'AnimatedImplementation') {
return 'Animated';
}
return filepath;
}
Expand All @@ -43,7 +45,7 @@ function getPlatformFromPath(filepath) {
while (ext = path.extname(filepath)) {
filepath = path.basename(filepath, ext);
}

if (endsWith(filepath, 'Android')) {
return ANDROID_SUFFIX;
} else if (endsWith(filepath, 'IOS')) {
Expand Down Expand Up @@ -107,7 +109,7 @@ function componentsToMarkdown(type, json, filepath, i, styles) {
var componentName = getNameFromPath(filepath);
var componentPlatform = getPlatformFromPath(filepath);
var docFilePath = '../docs/' + componentName + '.md';

if (fs.existsSync(docFilePath)) {
json.fullDescription = fs.readFileSync(docFilePath).toString();
}
Expand Down Expand Up @@ -217,7 +219,7 @@ var components = [
var apis = [
'../Libraries/ActionSheetIOS/ActionSheetIOS.js',
'../Libraries/Utilities/AlertIOS.js',
'../Libraries/Animated/Animated.js',
'../Libraries/Animated/src/AnimatedImplementation.js',
'../Libraries/AppRegistry/AppRegistry.js',
'../Libraries/AppStateIOS/AppStateIOS.ios.js',
'../Libraries/Storage/AsyncStorage.ios.js',
Expand Down

0 comments on commit 48e0423

Please sign in to comment.