Convert Link tags to md syntax

Summary:
Previously we used <Link/> everywhere with useBaseUrl to avoid link destinations depending on the current url of the page.

This isn't necessary if you instead link to the **file name**, rather than the **url path**.
Then the links are resolved at build time, and work across imported markdown files etc.

This diff just does the pages under Features, because other ones will get conflicts. I'll do those later.

Reviewed By: nikoant

Differential Revision: D25589707

fbshipit-source-id: 35ca986e19fc2af1054b81d7253eeb3827947ab8
This commit is contained in:
John Knox
2020-12-16 10:35:34 -08:00
committed by Facebook GitHub Bot
parent e1edd62c30
commit 00356f96c5
12 changed files with 14 additions and 27 deletions

View File

@@ -3,9 +3,8 @@ id: layout-plugin
title: Layout Inspector
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import Link from '@docusaurus/Link';
<Link to={useBaseUrl("/docs/setup/layout-plugin")}>See setup instructions for the Layout Inspector</Link>
[See setup instructions for the Layout Inspector](../setup/layout-plugin.mdx)
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.