From b6fc2f0651ed15cc48c62e18ed857ef5a3ce578e Mon Sep 17 00:00:00 2001 From: John Knox Date: Tue, 9 Mar 2021 05:41:51 -0800 Subject: [PATCH] Fix duplicate route to setup/leak-canary-plugin Summary: Noticed this when building the site. Shame it only warns and doesn't fail the build. Just fixing it while I'm here. {F479009268} Reviewed By: nikoant Differential Revision: D26911725 fbshipit-source-id: 6440a4b8aee4a6bc053ae771a3b148fd70ffc298 --- docs/features/leak-canary-plugin.mdx | 2 +- docs/setup/leak-canary-2-plugin.mdx | 8 ++++---- website/sidebars.js | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/features/leak-canary-plugin.mdx b/docs/features/leak-canary-plugin.mdx index 2dea5c65e..81cabe774 100644 --- a/docs/features/leak-canary-plugin.mdx +++ b/docs/features/leak-canary-plugin.mdx @@ -4,7 +4,7 @@ title: LeakCanary --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the LeakCanary](../setup/leak-canary-plugin.mdx) +→ See setup instructions for [LeakCanary 1](../setup/leak-canary-plugin.mdx) or [LeakCanary 2](../setup/leak-canary-2-plugin.mdx) The LeakCanary plugin provides developers with Flipper support for [LeakCanary](https://github.com/square/leakcanary), an open source memory leak detection library. diff --git a/docs/setup/leak-canary-2-plugin.mdx b/docs/setup/leak-canary-2-plugin.mdx index 0370d9bef..7c20b8a36 100644 --- a/docs/setup/leak-canary-2-plugin.mdx +++ b/docs/setup/leak-canary-2-plugin.mdx @@ -1,7 +1,7 @@ --- -id: leak-canary-plugin -title: LeakCanary Setup -sidebar_label: LeakCanary +id: leak-canary-2-plugin +title: LeakCanary 2 Setup +sidebar_label: LeakCanary 2 --- Ensure that you already have an explicit dependency in your application's @@ -46,4 +46,4 @@ import com.facebook.flipper.plugins.leakcanary2.LeakCanary2FlipperPlugin } ``` -That's it! \ No newline at end of file +That's it! diff --git a/website/sidebars.js b/website/sidebars.js index 8160a9ea0..a26b770e3 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -88,6 +88,7 @@ module.exports = { 'setup/sandbox-plugin', 'setup/shared-preferences-plugin', 'setup/leak-canary-plugin', + 'setup/leak-canary-2-plugin', 'setup/crash-reporter-plugin', ], Advanced: ['custom-ports', 'stetho'],