From 281cd67ddbda5b08035755b119253e99d6df2bd8 Mon Sep 17 00:00:00 2001 From: John Knox Date: Wed, 29 Apr 2020 05:18:44 -0700 Subject: [PATCH] Fix some broken links Summary: KESHAmambo pointed out some internal links are broken on the website: https://twitter.com/KESHAmambo/status/1255443093542895619 The way relative links are processed in docusaurus v1 and v2 has changed. This fixes them up. Reviewed By: mweststrate Differential Revision: D21301293 fbshipit-source-id: 7610e38a55bc066625373cf2eee9a3efb63aec08 --- docs/features/crash-reporter-plugin.mdx | 2 +- docs/features/databases-plugin.mdx | 2 +- docs/features/images-plugin.mdx | 2 +- docs/features/layout-plugin.mdx | 2 +- docs/features/leak-canary-plugin.mdx | 2 +- docs/features/navigation-plugin.mdx | 2 +- docs/features/network-plugin.mdx | 2 +- docs/features/sandbox-plugin.mdx | 2 +- docs/features/shared-preferences-plugin.mdx | 2 +- docs/getting-started/android-native.mdx | 2 +- docs/getting-started/ios-native.mdx | 2 +- docs/getting-started/react-native.mdx | 8 ++++---- docs/troubleshooting.mdx | 4 ++-- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/features/crash-reporter-plugin.mdx b/docs/features/crash-reporter-plugin.mdx index ed381c676..2f4c626d1 100644 --- a/docs/features/crash-reporter-plugin.mdx +++ b/docs/features/crash-reporter-plugin.mdx @@ -4,7 +4,7 @@ title: Crash Reporter --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the Crash Reporter](setup/crash-reporter-plugin) +→ [See setup instructions for the Crash Reporter](../setup/crash-reporter-plugin) The Crash Reporter Plugin shows a notification in Flipper whenever an app crashes. You can click on the notification to see crash information like stacktrace and other metadata. For Android, you can click the "Open in Logs" button to jump to the row in the Logs plugin with the crash information. diff --git a/docs/features/databases-plugin.mdx b/docs/features/databases-plugin.mdx index f4edb6d06..4e8d2b222 100644 --- a/docs/features/databases-plugin.mdx +++ b/docs/features/databases-plugin.mdx @@ -4,7 +4,7 @@ title: Databases --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the Databases plugin](setup/databases-plugin) +→ [See setup instructions for the Databases plugin](../setup/databases-plugin) The Databases plugin provides developers with read-write access to their databases: - browse your tables' data diff --git a/docs/features/images-plugin.mdx b/docs/features/images-plugin.mdx index 62db32311..91d1a4506 100644 --- a/docs/features/images-plugin.mdx +++ b/docs/features/images-plugin.mdx @@ -4,7 +4,7 @@ title: Images --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the images plugin](setup/images-plugin) +→ [See setup instructions for the images plugin](../setup/images-plugin) The images plugin allows you to inspect what images were fetched, where they are coming from and selectively clear caches. Currently, the plugin supports diff --git a/docs/features/layout-plugin.mdx b/docs/features/layout-plugin.mdx index accc3c91a..9e940e2c5 100644 --- a/docs/features/layout-plugin.mdx +++ b/docs/features/layout-plugin.mdx @@ -4,7 +4,7 @@ title: Layout Inspector --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the Layout Inspector](setup/layout-plugin) +→ [See setup instructions for the Layout Inspector](../setup/layout-plugin) The Layout Inspector in Flipper is useful for a ton of different debugging scenarios. First of all, you can inspect what views the hierarchy is made up of as well as what properties each view has. This is incredibly useful when debugging issues with your product. diff --git a/docs/features/leak-canary-plugin.mdx b/docs/features/leak-canary-plugin.mdx index 686f52a30..9916dba9a 100644 --- a/docs/features/leak-canary-plugin.mdx +++ b/docs/features/leak-canary-plugin.mdx @@ -3,7 +3,7 @@ id: leak-canary-plugin title: LeakCanary --- -→ [See setup instructions for the LeakCanary](setup/leak-canary-plugin) +→ [See setup instructions for the LeakCanary](../setup/leak-canary-plugin) 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/features/navigation-plugin.mdx b/docs/features/navigation-plugin.mdx index 144cdf0fc..a086a14ed 100644 --- a/docs/features/navigation-plugin.mdx +++ b/docs/features/navigation-plugin.mdx @@ -4,7 +4,7 @@ title: Navigation --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the Navigation Plugin](setup/navigation-plugin) +→ [See setup instructions for the Navigation Plugin](../setup/navigation-plugin) The Navigation Plugin allows users to quickly navigate to deep links within their mobile applications to help speed up the development cycle. The plugin is designed to integrate easily within your existing navigation framework or as a stand alone tool. Users can bookmark deep links and jump to them via the button in the tool bar. diff --git a/docs/features/network-plugin.mdx b/docs/features/network-plugin.mdx index a3cac4c78..436f7db87 100644 --- a/docs/features/network-plugin.mdx +++ b/docs/features/network-plugin.mdx @@ -4,7 +4,7 @@ title: Network --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the Network plugin](setup/network-plugin) +→ [See setup instructions for the Network plugin](../setup/network-plugin) Use the Network inspector to inspect outgoing network traffic in your apps. You can easily browse all requests being made and their responses. The plugin also supports gzipped responses. diff --git a/docs/features/sandbox-plugin.mdx b/docs/features/sandbox-plugin.mdx index d4426473b..447fed6a2 100644 --- a/docs/features/sandbox-plugin.mdx +++ b/docs/features/sandbox-plugin.mdx @@ -3,6 +3,6 @@ id: sandbox-plugin title: Sandbox --- -→ [See setup instructions for the Sandbox plugin](setup/sandbox-plugin) +→ [See setup instructions for the Sandbox plugin](../setup/sandbox-plugin) The sandbox plugin allows developers to test changes in their apps by pointing them to a sandbox environment. It provides a simple UI to set and modify the URL to a development host that acts as a sandbox directly on the desktop, which prevents you from entering potentially long and complicated URL inside your app. diff --git a/docs/features/shared-preferences-plugin.mdx b/docs/features/shared-preferences-plugin.mdx index 678ca8aa8..0e47d8a5c 100644 --- a/docs/features/shared-preferences-plugin.mdx +++ b/docs/features/shared-preferences-plugin.mdx @@ -4,7 +4,7 @@ title: Shared Preferences --- import useBaseUrl from '@docusaurus/useBaseUrl'; -→ [See setup instructions for the Shared Preferences plugin](setup/shared-preferences-plugin) +→ [See setup instructions for the Shared Preferences plugin](../setup/shared-preferences-plugin) Easily inspect and modify the data contained within your app's shared preferences. diff --git a/docs/getting-started/android-native.mdx b/docs/getting-started/android-native.mdx index 35fac96b8..3f2657679 100644 --- a/docs/getting-started/android-native.mdx +++ b/docs/getting-started/android-native.mdx @@ -108,7 +108,7 @@ dependencies { ## Enabling plugins -Finally, you need to add plugins to your Flipper client. Above, we have only added the Layout Inspector plugin to get you started. See [Network Plugin](setup/network-plugin) and [Layout Inspector Plugin](setup/layout-plugin) for information on how to add them, and also enable Litho or ComponentKit support. You can check the sample apps in the [GitHub repo](https://github.com/facebook/flipper) for examples of integrating other plugins. +Finally, you need to add plugins to your Flipper client. Above, we have only added the Layout Inspector plugin to get you started. See [Network Plugin](../setup/network-plugin) and [Layout Inspector Plugin](../setup/layout-plugin) for information on how to add them, and also enable Litho or ComponentKit support. You can check the sample apps in the [GitHub repo](https://github.com/facebook/flipper) for examples of integrating other plugins. ## Having trouble? diff --git a/docs/getting-started/ios-native.mdx b/docs/getting-started/ios-native.mdx index 4eb11e82f..00775b00e 100644 --- a/docs/getting-started/ios-native.mdx +++ b/docs/getting-started/ios-native.mdx @@ -223,7 +223,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ## Enabling plugins -Finally, you need to add plugins to your Flipper client. Above, we have only added the Layout Inspector plugin to get you started. See [Network Plugin](setup/network-plugin) and [Layout Inspector Plugin](setup/layout-plugin) for information on how to add them, and also enable Litho or ComponentKit support. You can check the sample apps in the [GitHub repo](https://github.com/facebook/flipper) for examples of integrating other plugins. +Finally, you need to add plugins to your Flipper client. Above, we have only added the Layout Inspector plugin to get you started. See [Network Plugin](../setup/network-plugin) and [Layout Inspector Plugin](../setup/layout-plugin) for information on how to add them, and also enable Litho or ComponentKit support. You can check the sample apps in the [GitHub repo](https://github.com/facebook/flipper) for examples of integrating other plugins. ## Having trouble? diff --git a/docs/getting-started/react-native.mdx b/docs/getting-started/react-native.mdx index 6b93b7779..ae41e8cb2 100644 --- a/docs/getting-started/react-native.mdx +++ b/docs/getting-started/react-native.mdx @@ -22,14 +22,14 @@ By default, the following plugins will be available: Additional plugins can be installed through the plugin manager. -To create your own plugins and integrate with Flipper using JavaScript, check out our [writing plugins for React Native](/docs/tutorial/react-native) tutorial! +To create your own plugins and integrate with Flipper using JavaScript, check out our [writing plugins for React Native](../tutorial/react-native) tutorial! -To update the Flipper SDK in your project, you bump the version in the `ios/Podfile` and `android/gradle.properties` files of your project. +To update the Flipper SDK in your project, you bump the version in the `ios/Podfile` and `android/gradle.properties` files of your project. ## Manual Setup If you are not using a default React Native template or cannot use the upgrade tool, you can find instructions for how to integate Flipper into your projects in these guides: -- [React Native for Android](/docs/getting-started/react-native-android) -- [React Native for iOS](/docs/getting-started/react-native-ios) \ No newline at end of file +- [React Native for Android](react-native-android) +- [React Native for iOS](react-native-ios) diff --git a/docs/troubleshooting.mdx b/docs/troubleshooting.mdx index 2c11b500c..543fec136 100644 --- a/docs/troubleshooting.mdx +++ b/docs/troubleshooting.mdx @@ -41,7 +41,7 @@ On a terminal, run the following: ```bash adb shell am start -n /com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity ``` -This will only work if you added `FlipperDiagnosticActivity` to your `AndroidManifest.xml`. See [getting started](getting-started/) for help. +This will only work if you added `FlipperDiagnosticActivity` to your `AndroidManifest.xml`. See [getting started](getting-started/index) for help. #### iOS You'll need to manually add this [ViewController](https://github.com/facebook/flipper/blob/master/iOS/FlipperKit/FlipperDiagnosticsViewController.m) to your app to see the in-app diagnostics. @@ -92,7 +92,7 @@ debugImplementation('com.facebook.flipper:flipper:*') { ### Build errors in React Native -If you experience errors such as `Undefined symbol: associated type descriptor for FloatLiteralType` or `Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility50` after going through the [Getting Started](/docs/getting-started/) tutorial you must do as follows: +If you experience errors such as `Undefined symbol: associated type descriptor for FloatLiteralType` or `Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility50` after going through the [Getting Started](getting-started/index) tutorial you must do as follows: 1. Open your project in Xcode; 1. Click in your project's name on the left side;