From b5357573e97ccc3bfdf6a190713a7df66e462c4b Mon Sep 17 00:00:00 2001 From: Antoine Garcia Date: Tue, 8 Dec 2020 20:12:08 +0100 Subject: [PATCH] fix(docs): correct path to source code (#4659) --- website/scripts/source-reference.js | 6 +++--- website/scripts/utils.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/scripts/source-reference.js b/website/scripts/source-reference.js index 41125b7625..7bbec91572 100644 --- a/website/scripts/source-reference.js +++ b/website/scripts/source-reference.js @@ -165,9 +165,9 @@ function moduleNameToFullName(name) { return 'In-App Messaging'; case 'messaging': return 'Cloud Messaging'; - case 'ml': - return 'ML'; - case 'perf': + case 'ml': + return 'ML'; + case 'perf': return 'Performance Monitoring'; case 'remote-config': return 'Remote Config'; diff --git a/website/scripts/utils.js b/website/scripts/utils.js index 446bea35f2..6066f1d023 100644 --- a/website/scripts/utils.js +++ b/website/scripts/utils.js @@ -106,7 +106,7 @@ module.exports.extractSourceFile = function extractSourceFile(sources = []) { return sources.map(source => { if (!source) return ''; if (source.fileName.includes('node_modules')) return ''; - return `https://github.com/invertase/react-native-firebase/blob/master/packages/${ + return `https://github.com/invertase/react-native-firebase/blob/master/${ source.fileName }#L${source.line || 0}`; });