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