From 00ceec9def0dff134d9fbfcb2104a64686720789 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Tue, 22 Sep 2015 12:54:04 -0700 Subject: [PATCH] Fix website with Animated Animated.js has been renamed (and moved) to AnimatedImplementation.js, so we need to update the path and add another translation rule. --- website/server/extractDocs.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/website/server/extractDocs.js b/website/server/extractDocs.js index f46151c69..867fdfa00 100644 --- a/website/server/extractDocs.js +++ b/website/server/extractDocs.js @@ -34,6 +34,8 @@ function getNameFromPath(filepath) { return 'Transforms'; } else if (filepath === 'TabBarItemIOS') { return 'TabBarIOS.Item'; + } else if (filepath === 'AnimatedImplementation') { + return 'Animated'; } return filepath; } @@ -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')) { @@ -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(); } @@ -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',