Fix image links with baseUrl

Summary:
When using baseUrl in site config, it adds a prefix to all link paths.

But for assets, it doesn't work if you refer to them as `docs/assets/...`, you have to use just `assets/...`. Source: https://github.com/facebook/Docusaurus/issues/861

Reviewed By: passy

Differential Revision: D20796933

fbshipit-source-id: 2346e42b8b548f576a1e143f56ee5236eab55073
This commit is contained in:
John Knox
2020-04-02 03:12:06 -07:00
committed by Facebook GitHub Bot
parent cfb77148f7
commit 5ad8106e3f
20 changed files with 29 additions and 29 deletions

View File

@@ -8,6 +8,6 @@ title: Crash Reporter
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.
![UI](/docs/assets/crashreporterplugin.png)
![UI](assets/crashreporterplugin.png)
![Notification](/docs/assets/crashreporterpluginnotification.png)
![Notification](assets/crashreporterpluginnotification.png)

View File

@@ -13,7 +13,7 @@ The Databases plugin provides developers with read-write access to their databas
- see logs of past executed queries
![Databases Plugin 1](/docs/assets/databases-plugin-1.png)
![Databases Plugin 2](/docs/assets/databases-plugin-2.png)
![Databases Plugin 1](assets/databases-plugin-1.png)
![Databases Plugin 2](assets/databases-plugin-2.png)
Note: this plugin is only available for Android.

View File

@@ -9,7 +9,7 @@ The images plugin allows you to inspect what images were fetched, where they are
coming from and selectively clear caches. Currently, the plugin supports
[Fresco](https://github.com/facebook/fresco/) as backend.
![Images plugin](/docs/assets/images-plugin.png)
![Images plugin](assets/images-plugin.png)
## Cache Inspector

View File

@@ -5,7 +5,7 @@ title: Features
Flipper itself only provides the architectural platform. What makes it useful are the plugins built on top of it: [Logs](logs-plugin.md), [Layout Inspector](layout-plugin.md) and [Network Inspector](network-plugin.md) are all plugins. Plugins can be built very specific to your business logic and the use-cases you have in your app. We are shipping Flipper with a couple of built-in all-purpose plugins, but we encourage you to build your own. Each plugin needs to be enabled individually.
![Layout plugin](/docs/assets/plugins.png)
![Layout plugin](assets/plugins.png)
## Build your own plugin

View File

@@ -11,7 +11,7 @@ The Layout tab supports [Litho](https://fblitho.com) and [ComponentKit](https://
If you hover over a view or component in Flipper we will highlight the corresponding item in your app. This is perfect for debugging the bounds of your views and making sure you have the correct visual padding.
![Layout plugin](/docs/assets/layout.png)
![Layout plugin](assets/layout.png)
## Quick edits

View File

@@ -5,7 +5,7 @@ title: Logs
The Logs plugin shows device logs without any additional setup. This is a device plugin, meaning that it is not tied to any specific app and there is no additional setup needed to see the logs.
![Logs plugin](/docs/assets/logs.png)
![Logs plugin](assets/logs.png)
## Filtering

View File

@@ -7,8 +7,8 @@ title: Navigation
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.
![Navigation Plugin Button](/docs/assets/navigation-plugin-1.png)
![Navigation Plugin Button](assets/navigation-plugin-1.png)
Navigation events within the app can also be logged to Flipper. This allows the user to view past navigation events and jump straight to them, or export the navigation events for reporting.
![Navigation Plugin UI](/docs/assets/navigation-plugin-2.png)
![Navigation Plugin UI](assets/navigation-plugin-2.png)

View File

@@ -7,6 +7,6 @@ title: Network
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.
![Network plugin](/docs/assets/network.png)
![Network plugin](assets/network.png)
All request sent from the device will be listed in the plugin. Click on a request to see details like headers and body. You can filter the table for domain, method or status by clicking on the corresponding value in the table.

View File

@@ -3,7 +3,7 @@ id: react-native
title: React Native Support
---
![React Native + React DevTools](/docs/assets/react-native-react.png)
![React Native + React DevTools](assets/react-native-react.png)
The React Native and Developer tooling teams at Facebook work in close collaboration to make sure Flipper offers top-notch value out of the box for React Native development.
Integration between React Native and Flipper is enabled out of the box in React Native version 0.62 and higher.
@@ -16,7 +16,7 @@ In Flipper there is a dedicated device type, “React Native”, that connects t
If Metro is connected, two new buttons will appear in Flippers main toolbar: “Reload” and “Open Dev Menu”. Both do exactly what their name suggests, without needing the agility of a pianist to get to the right keyboard combo inside your emulator. The “React Native” device will feature two plugins out of the box: “Logs” and “React DevTools”.
![React Native Action Buttons and Logs](/docs/assets/react-native-logs.png)
![React Native Action Buttons and Logs](assets/react-native-logs.png)
The React DevTools allows you to inspect the component tree and tune the props and state of your React components.
@@ -39,7 +39,7 @@ Beyond the React Native specific Flipper plugins described above, with Flipper y
One of the greatest values of Flipper is its extensibility. Many teams across Facebook already have written their own one-off plugins that help with analysing very specific use cases.
Writing plugins for Flipper doesn't require any native code, as the Flipper SDK is exposed directly to JavaScript through the [react-native-flipper](https://www.npmjs.com/package/react-native-flipper) package.
![Tic Tac Toe example plugin](/docs/assets/react-native-tictactoe.png)
![Tic Tac Toe example plugin](assets/react-native-tictactoe.png)
_Example Flipper plugin: playing a game of Tic Tac Toe using Flipper and some emulators_
If you would love to build a specific (or generic) extension for Flipper check out the following pointers! Plugins for Flipper can be distributed through NPM so sharing them is trivial.

View File

@@ -9,7 +9,7 @@ Flipper's diagnostic and profiling data is often used for debugging. But sometim
You can export Flipper's data in a `.flipper` file. For the export to work, an active device needs to be connected to Flipper. Make sure you have selected the device you want to export in Flipper's device dropdown:
![selectedDevice](/docs/assets/shareFlipperData/selectedDevice.png)
![selectedDevice](assets/shareFlipperData/selectedDevice.png)
To export Flipper's into a file, select "File" → "Export" from the menu bar and save it where ever you like. This file now can be shared with your colleagues.
@@ -19,6 +19,6 @@ To export Flipper's into a file, select "File" → "Export" from the menu bar an
Opening a `.flipper` file imports all the data and allows you to use Flipper as if the device was connected. However, note the device is marked as "offline". This means, while you are able to see all the date, you can not interact with it (e.g. change a view's background color), because the actual device is not present.
![importedDevice](/docs/assets/shareFlipperData/importedDevice.png)
![importedDevice](assets/shareFlipperData/importedDevice.png)
For advanced users, Flipper also provides a URL handler to import data. Linking to `flipper://import/?url={LINK_TO_FLIPPER_FILE}` will launch Flipper and display the downloaded data.

View File

@@ -6,6 +6,6 @@ title: Shared Preferences
Easily inspect and modify the data contained within your app's shared preferences.
![Shared Preferences Plugin](/docs/assets/shared-preferences.png)
![Shared Preferences Plugin](assets/shared-preferences.png)
All changes to the given shared preference file will automatically appear in Flipper. You may also edit the values in Flipper and have them synced to your device. This can be done by clicking on the value of the specific key you wish to edit, editing the value and then pressing enter.