Commit Graph

480 Commits

Author SHA1 Message Date
John Knox
77ffe1d47b Rename FB Internal to Under the Hood
Summary:
I think there's a need for an "implementation details" section of the site. Especially as we're moving the rest of our wiki content there.

I see it as a good thing, because now we have a place for implementation details relevant to OSS contributors too, it's not all fb-specific.

Reviewed By: nikoant

Differential Revision: D25614909

fbshipit-source-id: 5ec081e6450a9ad1c30785ae4cca74b6fa0d2630
2020-12-17 08:32:51 -08:00
Michel Weststrate
69dae5c8e5 Restructured dev workflow docs
Summary: This diff unifies setup and workflow information that was scattered a bit around into one cohesive 'Development workflow' subsection in the 'creating plugins' section of Flipper.

Reviewed By: nikoant

Differential Revision: D25612288

fbshipit-source-id: 5fa7f2d000fb7ab3e1b5c5a4fc8cc1f209252f41
2020-12-17 07:40:58 -08:00
Michel Weststrate
19ea20511c Unify documentation on how to get a plugin instance
Summary: There were 3 pages describing how to obtain a plugin instance, public, ios and android. iOS didn't differ from the public one, and android only in the fact that internally DI is available. So combined the pages with just an optional section for DI inside FB on Android.

Reviewed By: jknoxville

Differential Revision: D25588057

fbshipit-source-id: 3a54ae699130a4c5ba018220708f844a35a8d6a9
2020-12-17 05:07:11 -08:00
Michel Weststrate
51995776d4 Combine client testing documentation
Summary: There was one public page for testing client plugins, and two internal ones. Combined it into a one pager, that has tabs per target, with separate content for internal versus external (didn't combine those as the testing frameworks recommended differ)

Reviewed By: nikoant

Differential Revision: D25588058

fbshipit-source-id: afa151ec0c3a5de26142938d3d389627716f1ff7
2020-12-17 05:07:11 -08:00
Michel Weststrate
a9ad932955 Combine the two pages describing sending data
Summary: send data was documented twice, in the general client API, and in the internal docs where it was specifically combined with obtaining a plugin instance. However, that is a proper public API as well, so combined those two.

Reviewed By: nikoant

Differential Revision: D25588059

fbshipit-source-id: 7135a74b64a87d0c8c3f8f20f7f260469f52d41c
2020-12-17 05:07:11 -08:00
John Knox
00356f96c5 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
2020-12-16 10:37:34 -08:00
Michel Weststrate
58cbea0017 Fix all docusaurus tabs
Summary: Seems that all tabs were broken after migration to Docusaurus 2.

Reviewed By: jknoxville

Differential Revision: D25586214

fbshipit-source-id: 31a8da4e13fbac01911a03f1f4bab0d2837c9c9a
2020-12-16 07:26:15 -08:00
Michel Weststrate
32a75ecb58 Restructure extending docs
Summary:
This diff restructures the 'extending' section of the docs, and rebrands it to 'creating plugins'. It then restructures this section into 4 top-level items

* Tutorial
* Desktop plugin APIs
* Client plugin APIs
* Workflow

Pages are put under the relevant sections, including pages which were before under internal. Some pages that didn't relate directly to plugin development have been moved to other top level sections (e.g. testing RN).

I didn't do de-duplication between pages yet, that will be done in the next diff.

Overview of changes:

* Extending -> Creating Plugins
* Moved Extending > Other platforms to Setup > Other platforms (as this is about clients, not plugins)
* Moved Internal FB plugin development stuff into Creating Plugins
* Separated Creating Plugins into ‘Tutorial’, Desktop API Reference, Cient API Reference, Workflow
* Remove TypeScript strict page, we are already strict
* Moved QPL linters to api docs and named id QPL lints
* Grouped the different pages on extending Layout plugin (needs deduping still)
* Warning about avoiding custom styling in general
* Moved internal index page to the top of the navigation of FB Internal, rather than at the bottom

Reviewed By: passy

Differential Revision: D25585172

fbshipit-source-id: ba2aa891395097d6aa101809084b915f115ee69d
2020-12-16 05:55:23 -08:00
John Knox
063a1d191f Combine internal and external navigation plugin setup pages
Summary:
Now in public, the setup page remains unchanged, well, the headings are one level smaller.

In internal, the page is divided into two sections: for buck based apps, and non-buck based ones.

Reviewed By: mweststrate

Differential Revision: D25565953

fbshipit-source-id: abf4316a28970cd93d0cc9b56dd707f00a674a48
2020-12-16 03:30:18 -08:00
John Knox
a76bdcbca2 Move iOS setup guide to getting-started section
Summary:
Putting both iOS setup guides next to each other.
I'm not sure what to call the oss one. It applies to cocoapods, swift, and pure objc.

Reviewed By: passy

Differential Revision: D25563988

fbshipit-source-id: a7ee2a0ae04e5753a74939b1c170d9a2f2ace1a9
2020-12-16 03:30:18 -08:00
John Knox
13a11f0bda Move android setup guide to getting-started section
Summary: Puts both the "Adding flipper to android apps" page next to each other, one for buck and one for gradle. The buck one is only internal.

Reviewed By: passy

Differential Revision: D25563688

fbshipit-source-id: 1937cfdd0d5129b54a8635efe6294ba39a26be8e
2020-12-16 03:30:18 -08:00
Michel Weststrate
63e46738c1 Move GK documentation / explanation to the refguide
Summary: ^

Reviewed By: nikoant

Differential Revision: D25559029

fbshipit-source-id: cf47c3f3b9d567ba24b7a6a254a945c763350195
2020-12-15 12:34:14 -08:00
Michel Weststrate
f9c8826090 Use the same create-plugin tutorial for FB and non-FB users
Summary: Per title

Reviewed By: passy

Differential Revision: D25558871

fbshipit-source-id: 85fbc73143a5ca172115169d08f8cdce502eb833
2020-12-15 12:34:14 -08:00
Michel Weststrate
d08aa5d33e Removed void intro page to the tutorial
Summary: The 'extending flipper' introduction page didn't contain anything meaty, so collapsed it into the tutorial introduction, cleaning up the top level navigation.

Reviewed By: passy

Differential Revision: D25531718

fbshipit-source-id: ca0f98186e889e13cb97be8818db3588738e5039
2020-12-15 08:22:31 -08:00
Pascal Hartig
e188469acd Add public release docs
Summary: Per title.

Reviewed By: nikoant

Differential Revision: D25535920

fbshipit-source-id: 63fc1b7f5ea122478a3e82e3345d057bc7be37cd
2020-12-14 11:27:01 -08:00
Michel Weststrate
52862f6083 Introduce isPluginAvailable and selectPlugin
Summary:
Introduced API to replace the deprecated `selectPlugin` in Sandy.

The API can be used to navigate from `device plugin -> device plugin`, or` client plugin -> device / client plugin`

Introduced `isPluginAvailable` as well, so that the user interaction an be fine tuned in case the plugin is not disabled.

Reviewed By: jknoxville

Differential Revision: D25422370

fbshipit-source-id: c6c603f1c68e6291280b3d0883e474448754ded1
2020-12-09 14:36:18 -08:00
generatedunixname89002005306973
02a56da3f5 Flipper Snapshot Bump: v0.69.1-SNAPSHOT
Summary: Releasing snapshot version 0.69.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D25421258

fbshipit-source-id: 4c4e07b43bd2545e09d2e6e9280f7c16b0669c24
2020-12-09 05:43:39 -08:00
generatedunixname89002005306973
4fa2c9761a Flipper Release: v0.69.0
Summary: Releasing version 0.69.0

Reviewed By: mweststrate

Differential Revision: D25421257

fbshipit-source-id: aceee72e7d544cefe6717ed7b8c79679d2159e2b
2020-12-09 05:43:39 -08:00
Michel Weststrate
8dc321c1ee Verify that all APIs are documented in unit test
Summary: When exposing new top-level APIs from `flipper-plugin`, they should be documented. Added a unit test to enforce this and added documentation for all missing APIs.

Reviewed By: passy

Differential Revision: D25421401

fbshipit-source-id: f5cafc1881de846c8a5dd86e5d094ebd27a66f2a
2020-12-09 05:33:08 -08:00
Michel Weststrate
4aff8c1bcf Introduce useLogger hook
Summary: In the Flipper chrome there is a lot of `logger={logger}` prop drilling. Let's not do that anymore in the future by using a proper hook, which is exposed from `flipper-plugin`.

Reviewed By: passy

Differential Revision: D25421304

fbshipit-source-id: 01ec8563c67f7e2fac359c2f8216eba722bff8d9
2020-12-09 05:33:08 -08:00
John Knox
083dbd3dbc Merge troubleshooting pages
Summary:
This replaces the existing "FB Internals" troubleshooting" page with a redirect to the now single troubleshooting page, to make sure no links break.

It copies the content of that internal page into an internal-troubleshooting.mdx file, that isn't in any sidebars.

And it gets the main troubleshooting page to include that page, when doing an internal build. So now we only have one troubleshooting page.

Reviewed By: passy

Differential Revision: D25372552

fbshipit-source-id: 1a310ca1a4a21683d6074d480e819e5af40c8af2
2020-12-09 04:12:49 -08:00
Michel Weststrate
698df77553 Expose GK api on client
Summary: Make sure that GKs can be used in pure sandy plugins.

Reviewed By: jknoxville

Differential Revision: D25368358

fbshipit-source-id: c7c6aa4ecf0443cb3b5d90e22e8aca9a73a69389
2020-12-07 09:45:25 -08:00
generatedunixname89002005306973
534d407a7c Flipper Snapshot Bump: v0.68.1-SNAPSHOT
Summary: Releasing snapshot version 0.68.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D25330039

fbshipit-source-id: 27ebf1fb2113254dba22a854bd26013e9257a80d
2020-12-04 04:39:43 -08:00
generatedunixname89002005306973
8dd72a18f4 Flipper Release: v0.68.0
Summary: Releasing version 0.68.0

Reviewed By: nikoant

Differential Revision: D25330040

fbshipit-source-id: c5919cb74378abf5b3889c81b89b433d9f5af14b
2020-12-04 04:39:43 -08:00
Michel Weststrate
b885ff3b9e Tracking interactions
Summary:
Set up basic primitives for user interaction tracking. I hope the docs and unit tests in this diff are self explanatory :)

In upcoming diffs:
* Wire up to scuba events
* Annotate all important parts of Flipper Chrome
* Investigate if we can wrap important interactions of ANT by default

Reviewed By: jknoxville

Differential Revision: D25120234

fbshipit-source-id: 9849d565d7be27e498cc2b4db33e7d6e6938ee06
2020-12-03 04:15:44 -08:00
generatedunixname89002005306973
e57180f80b Flipper Snapshot Bump: v0.67.1-SNAPSHOT
Summary: Releasing snapshot version 0.67.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D25217537

fbshipit-source-id: ee1da5df799d861f62c04605b494aa4eaeae0584
2020-11-30 10:13:36 -08:00
generatedunixname89002005306973
3a733a10df Flipper Release: v0.67.0
Summary: Releasing version 0.67.0

Reviewed By: passy

Differential Revision: D25217536

fbshipit-source-id: 489cba736a847ea9f864b594646014a6d7279161
2020-11-30 10:13:36 -08:00
generatedunixname89002005306973
339a5280ac Flipper Snapshot Bump: v0.66.1-SNAPSHOT
Summary: Releasing snapshot version 0.66.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D25052023

fbshipit-source-id: a9912394b371a0c92829226ce52e586ac3cebc7c
2020-11-18 03:13:31 -08:00
generatedunixname89002005306973
ad8e8fbb24 Flipper Release: v0.66.0
Summary: Releasing version 0.66.0

Reviewed By: nikoant

Differential Revision: D25052024

fbshipit-source-id: 5ef39431905ca3bc2c4870bff2f8ae917ed1e81e
2020-11-18 03:13:31 -08:00
Michel Weststrate
d5557ef8de Documented so far undocumented top level APIs
Summary: Per title

Reviewed By: passy

Differential Revision: D24992066

fbshipit-source-id: a9aa351600d46a67b605e8555efb30d42ffc2d9b
2020-11-16 13:10:33 -08:00
Michel Weststrate
cc438e60ad Update public docs to use Sandy
Summary: This updates the docs of Flipper to use Sandy, rather than `FlipperPlugin` class. Restructured the docs a bit as a result.

Reviewed By: passy

Differential Revision: D24991285

fbshipit-source-id: 66d5760c25cf9cf3983515433dfd64348d51db3d
2020-11-16 13:10:32 -08:00
Michel Weststrate
69504252de Add antd as dependency in scarf template
Summary: Updated the scarf template to fix some urls, at `antd` by default, and avoid depending on `flipper-plugin`.

Reviewed By: cekkaewnumchai

Differential Revision: D24949452

fbshipit-source-id: 56b6628309d3cdf6c30acddf83dab6e493cd7c0e
2020-11-16 13:10:32 -08:00
generatedunixname89002005306973
7d29f84ae0 Flipper Snapshot Bump: v0.65.1-SNAPSHOT
Summary: Releasing snapshot version 0.65.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D24884909

fbshipit-source-id: 8efa0e5368069979281cfa8e0954edf6e18ebffa
2020-11-11 08:17:41 -08:00
generatedunixname89002005306973
f04c7a1768 Flipper Release: v0.65.0
Summary: Releasing version 0.65.0

Reviewed By: nikoant

Differential Revision: D24884910

fbshipit-source-id: 6aa59c57c9d372046d71048513db322c03c72b57
2020-11-11 08:17:41 -08:00
Michel Weststrate
1157976eef Expose more meta information for plugins
Summary: expose `appName`, `appId` and `device` to Sandy plugins. Will be used in next diff to migrate navigation plugin

Reviewed By: cekkaewnumchai

Differential Revision: D24857253

fbshipit-source-id: 03ac3d376d5d1950bcf3d78386a65ce167b517e3
2020-11-11 07:58:55 -08:00
Michel Weststrate
29e3d80669 Moved docs outside FB Internal
Summary: Moved docs outside of FBInternal docs. Will make Sandy APIs the default in the docs soon, and move the links to the proper location, but this at least makes sure we can already link to the correct place in WP announcements

Reviewed By: jknoxville

Differential Revision: D24829287

fbshipit-source-id: 913f2db65a7cdd04bd1be47aebc48ece7a6cef04
2020-11-09 08:24:28 -08:00
Pascal Hartig
d765e0f93e Fix React Native docs
Summary: Reckon this broke with the Docusaurus 2 upgrade.

Reviewed By: mweststrate

Differential Revision: D24537442

fbshipit-source-id: b3fbac990f82819941e17f0f7ce89df616aa6718
2020-10-29 05:58:20 -07:00
generatedunixname89002005306973
e5181a31c6 Flipper Snapshot Bump: v0.64.1-SNAPSHOT
Summary: Releasing snapshot version 0.64.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D24590606

fbshipit-source-id: 70e080e83661f6e73108e700718e8be37d8508f9
2020-10-28 06:06:33 -07:00
generatedunixname89002005306973
a3bcf6b043 Flipper Release: v0.64.0
Summary: Releasing version 0.64.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D24590607

fbshipit-source-id: 04671a31028a33cf020acd8b83c219608fe38319
2020-10-28 06:06:33 -07:00
Anton Nikolaev
910ad7f992 Update documentation about development build customisation options
Summary: Added docs about customisation options for development build

Reviewed By: mweststrate

Differential Revision: D24478489

fbshipit-source-id: d415b958f3b8abffbb462a6df8dffdeceea4c7bf
2020-10-23 02:42:06 -07:00
generatedunixname89002005306973
6eed8a9012 Flipper Snapshot Bump: v0.63.1-SNAPSHOT
Summary: Releasing snapshot version 0.63.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D24423407

fbshipit-source-id: 96ed1b64238771d411c0fc2802640a94c2cb4134
2020-10-20 11:13:12 -07:00
generatedunixname89002005306973
0f23f409ab Flipper Release: v0.63.0
Summary: Releasing version 0.63.0

Reviewed By: nikoant

Differential Revision: D24423408

fbshipit-source-id: 0bc12c49d8bf77d8dbf9688adb07dc176b210548
2020-10-20 11:13:12 -07:00
Michel Weststrate
0f9e97e55c Add troubleshooting guide for yoga module errors
Summary: Tried to sum up all solutions mentioned in https://github.com/facebook/react-native/issues/28503 for this recurring problem. The most common problem being simply opening the wrong file in XCode. From experience I can tell this is not obvious for iOS noobs like me :-P.

Reviewed By: passy

Differential Revision: D24359426

fbshipit-source-id: bb4d4951ac287ed2b09203e5414f62628a3feeb0
2020-10-16 04:10:33 -07:00
generatedunixname89002005306973
08360cf7e6 Flipper Snapshot Bump: v0.62.1-SNAPSHOT
Summary: Releasing snapshot version 0.62.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D24248943

fbshipit-source-id: 36d6ea0b2ef5042aabcad0b775e2ab21bbed9122
2020-10-12 06:03:03 -07:00
generatedunixname89002005306973
ca271dd7c3 Flipper Release: v0.62.0
Summary: Releasing version 0.62.0

Reviewed By: nikoant

Differential Revision: D24248944

fbshipit-source-id: 05742031294f6a77c78c0bdccbdffe7d82427f05
2020-10-12 06:03:03 -07:00
generatedunixname89002005306973
b183b7be89 Flipper Snapshot Bump: v0.61.1-SNAPSHOT
Summary: Releasing snapshot version 0.61.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D24132585

fbshipit-source-id: 505e0b7f3a2ebfecbf01adca185343cbe13f9649
2020-10-06 03:43:56 -07:00
generatedunixname89002005306973
ad929b23d0 Flipper Release: v0.61.0
Summary: Releasing version 0.61.0

Reviewed By: mweststrate

Differential Revision: D24132584

fbshipit-source-id: 7ae6ad5144561d356effe8eda5eaf472445365e6
2020-10-06 03:43:56 -07:00
Nikolas Evers
524c32d39a Fix typo Abritrary (#1566)
Summary:
Fixes the typo `Abritrary` in the docs which should be `Arbitrary` instead

## Changelog

Docs: Fixed the typo `AbritraryView` (now `ArbitraryView`)

Pull Request resolved: https://github.com/facebook/flipper/pull/1566

Test Plan: --

Reviewed By: cekkaewnumchai

Differential Revision: D24078448

Pulled By: passy

fbshipit-source-id: b2a1b58c9bff8684ed6cd6c7958a826480371fd2
2020-10-02 10:57:08 -07:00
generatedunixname89002005306973
a92aa126ae Flipper Snapshot Bump: v0.60.1-SNAPSHOT
Summary: Releasing snapshot version 0.60.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D24017296

fbshipit-source-id: d9d7c2381fc1384608d4311a7da485f020829ae1
2020-09-30 09:28:54 -07:00
generatedunixname89002005306973
8054f6446f Flipper Release: v0.60.0
Summary: Releasing version 0.60.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D24017297

fbshipit-source-id: ff193e95edc7d236c204bddf83aba56a7f009469
2020-09-30 09:28:54 -07:00