Upgrade static docs plugin

Summary:
Upgrade the static docs plugin.

You no longer need to import OssOnly and FbInternalOnly in markdown files, so removed those imports too.

Reviewed By: passy

Differential Revision: D26580059

fbshipit-source-id: 2763de2f5fbef41ec2ac7f7bdd147418badb78b6
This commit is contained in:
John Knox
2021-02-22 09:15:56 -08:00
committed by Facebook GitHub Bot
parent 328595c87f
commit 08b594db5c
16 changed files with 15 additions and 33 deletions

View File

@@ -3,7 +3,6 @@ id: desktop-plugin-structure
title: Plugin structure
---
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
import FbNpmDeps from '../fb/adding-npm-dependencies-0.mdx'
Flipper Desktop plugins have a rigid structure. We recommend to scaffold any new plugin using our scaffolding tooling.

View File

@@ -3,8 +3,6 @@ id: dev-setup
title: Development Setup
---
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
## IDE
<OssOnly>

View File

@@ -2,7 +2,6 @@
id: flipper-plugin
title: Desktop Plugin API
---
import {FbInternalOnly} from 'internaldocs-fb-helpers';
## PluginClient

View File

@@ -3,8 +3,6 @@ id: loading-custom-plugins
title: Dynamically Loading Plugins
---
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
<FbInternalOnly>
<div class="warning">

View File

@@ -3,7 +3,6 @@ id: plugin-distribution
title: Plugin Distribution
---
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
import FbPluginReleases from './fb/desktop-plugin-releases.mdx'
<OssOnly>

View File

@@ -5,7 +5,6 @@ title: Testing
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
import FbIosTesting from '../fb/ios-plugin-development-testing-ios-plugins-0.mdx';
import FbAndroidTesting from '../fb/android-plugin-development-testing-android-plugins-0.mdx';

View File

@@ -3,7 +3,6 @@ id: index
title: Desktop App
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
import FbInstallation from './fb/installation.mdx';

View File

@@ -4,7 +4,6 @@ title: Navigation Plugin Setup
sidebar_label: Navigation
---
import {FbInternalOnly} from 'internaldocs-fb-helpers';
import FbNavigationPluginSetup from '../fb/Navigation-Plugin.mdx';
<FbInternalOnly>

View File

@@ -7,8 +7,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import InternalTroubleshooting from './fb/internal-troubleshooting.mdx';
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
We hope that flipper works well out of the box, but the software is a work in progress and problems will occur. Below are some known issues and steps you can take to try to resolve them.
<FbInternalOnly>

View File

@@ -3,7 +3,6 @@ id: android
title: Building an Android Plugin
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import {FbInternalOnly} from 'internaldocs-fb-helpers';
<img alt="Android Tutorial App" src={useBaseUrl("img/android-tutorial-app.png")} />

View File

@@ -3,7 +3,6 @@ id: intro
title: Intro
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import {FbInternalOnly} from 'internaldocs-fb-helpers';
<img alt="Android App Tutorial" src={useBaseUrl("img/android-tutorial.png")} />

View File

@@ -3,7 +3,6 @@ id: ios
title: Building an iOS Plugin
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import {FbInternalOnly} from 'internaldocs-fb-helpers';
<img alt="iOS Tutorial App" src={useBaseUrl("img/ios-tutorial-app.png")} />

View File

@@ -5,7 +5,6 @@ sidebar_label: Publishing
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import Link from '@docusaurus/Link';
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
<FbInternalOnly>

View File

@@ -4,7 +4,6 @@ title: Building a Desktop Plugin
sidebar_label: Building a Desktop Plugin
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers';
Now that we have the native side covered, let's display the data we're sending
on the desktop side. You can check out the full workflow of building Flipper desktop