Commit Graph

327 Commits

Author SHA1 Message Date
Lorenzo Blasa
896c001711 Add a new asset that can be used as the main Flipper screenshot
Summary:
^

Currently, it is a duplicate of the ui-debugger documentation image. The idea is creating this asset, for which we can obtain a URL, which can then be freely updated as we see fit.

Reviewed By: passy

Differential Revision: D49770514

fbshipit-source-id: 77a891c92e6aa803ad08a9b909ffd23d6a61c5a0
2023-09-29 09:13:17 -07:00
Lorenzo Blasa
e38f94d254 Update docs image
Summary: ^

Reviewed By: LukeDefeo

Differential Revision: D49770479

fbshipit-source-id: 1810e2c123f16dc79123f4bd9229404351d23407
2023-09-29 09:13:17 -07:00
Lorenzo Blasa
336c8c3159 Enable Lunr search bar
Summary: ^

Reviewed By: jknoxville

Differential Revision: D47548867

fbshipit-source-id: 462496da3d2668f9991e66381ca5ca0dd9c45ea9
2023-07-19 07:00:09 -07:00
Andrey Goncharov
b1d2bf4b9f Add documentation for Jest E2E integration
Reviewed By: lblasa

Differential Revision: D47363239

fbshipit-source-id: 8bf46f1a9143e1b9f6b54961ba92c9e3846ac89a
2023-07-11 04:41:24 -07:00
Eli White
49d1a8b0fa Removing unused yarn resolutions
Summary: These resolutions aren't used, validated with `yarn why`. See the diff higher in the stack for automation.

Reviewed By: yungsters

Differential Revision: D47282205

fbshipit-source-id: a2e909e3802f780fbe7525e5945faebee7004aef
2023-07-07 15:15:45 -07:00
Toni Babenko
d6b852d435 Remove broken img from the main page
Summary:
There's a picture with a broken link in the hero section:
{F999641292}

I checked a list of existing static images and found one which was on this place before: https://fburl.com/code/yh73399d. But the image no longer align with others, since it has low resolution and an old version of the Flipper interface, so I decided to simply remove the broken image from the page.

Reviewed By: passy

Differential Revision: D46074714

fbshipit-source-id: 186b17b9b992f123fc667c701b4f49d9e3cbbb2d
2023-05-22 11:47:49 -07:00
John Knox
ecab0f5eb8 Run yarn-audit-fix on website (#4578)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4578

```
yarn add -D yarn-audit-fix
yarn run yarn-audit-fix
```

Reviewed By: antonk52

Differential Revision: D43870273

fbshipit-source-id: d6a4a9ed149668f48356956b4bca681153eb1162
2023-03-07 08:14:03 -08:00
Pascal Hartig
16a91f1bbd Bump deps
Summary:
Hoping that this will fix our docs build.

Note that I also had to fix a syntax error in `extending/loading-custom-plugins.mdx` that
broke the build with:

```
SyntaxError: /Users/realpassy/fbsource/xplat/sonar/docs/extending/loading-custom-plugins.mdx: Expected corresponding JSX closing tag for <admonition>. (10:10)
   8 | <FbInternalOnly>
   9 | <admonition {...{"type":"caution"}}><p parentName="admonition">{`Within Meta, plugins sources are stored and loaded from `}<inlineCode parentName="p">{`~/fbsource/xplat/sonar/desktop/plugins`}</inlineCode>{`, in which case no further configuration is needed.`}</p><p parentName="admonition">{`If your team uses Flipper plugins that are stored outside `}<inlineCode parentName="p">{`fbsource`}</inlineCode>{`, please follow your team specific instructions.
> 10 | ::::`}</p></FbInternalOnly><p parentName="admonition">{`Flipper loads and runs plugins it finds in a configurable location. The paths searched are specified in `}<inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`. These `}<inlineCode parentName="p">{`pluginPaths`}</inlineCode>{` should contain one folder for each of the plugins it stores.`}</p><p parentName="admonition">{`An example config setting and plugin file structure is shown below:`}</p><p parentName="admonition"><inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`:`}</p><pre parentName="admonition"><code parentName="pre" {...{"className":"language-bash"}}>{`{
     |           ^
  11 |   ...,
  12 |   "pluginPaths": ["~/flipper-plugins"]
  13 | }
client (webpack 5.74.0) compiled with 1 error

```

Reviewed By: ivanmisuno

Differential Revision: D43767006

fbshipit-source-id: 64288d63c305bc9a9c9b797110889a703c7dcfee
2023-03-06 03:31:54 -08:00
Pascal Hartig
13f9fa64ff Fix style guide generation
Summary:
The website generation fails on newer versions of `flipper-plugin` as it contains an import-time side effect. This leads to this error during build time:

```
[ERROR] Docusaurus server-side rendering could not render static page with path /docs/extending/style-guide/.
[INFO] It looks like you are using code that should run on the client-side only.
To get around it, try using `<BrowserOnly>` (https://docusaurus.io/docs/docusaurus-core/#browseronly) or `ExecutionEnvironment` (https://docusaurus.io/doc
s/docusaurus-core/#executionenvironment).
It might also require to wrap your client code in `useEffect` hook and/or import a third-party library dynamically (if any).
```

This ain't pretty but by wrapping the entire file in a single function that conditionally imports the `flipper-plugin` if we are indeed in a browser environment fixes the problem.

Reviewed By: antonk52

Differential Revision: D43773298

fbshipit-source-id: 8e1099249626ca9fe745ce51014491fe9674a5a4
2023-03-03 11:04:13 -08:00
Anton Kastritskiy
a4281b56e3 bump sdoc version
Reviewed By: lblasa

Differential Revision: D43312988

fbshipit-source-id: 815b871aa5187f0f4cc125440a3e9928a2cdef40
2023-02-15 10:29:36 -08:00
Anton Kastritskiy
feded6403c bump staticdocs plugin
Reviewed By: lblasa

Differential Revision: D43304213

fbshipit-source-id: fd32b0dc5a8100c5e368f7e6633fea8aa7417b43
2023-02-15 06:01:09 -08:00
Deborah Attuah
035bcb6d0e automatic update for docusaurus-plugin-internaldocs-fb@1.8.0
Reviewed By: ivanmisuno

Differential Revision: D43186537

fbshipit-source-id: 741d852f86aca40563e64c8a1ccce350b2c54252
2023-02-13 03:35:45 -08:00
Lukas Kurucz
d97dfae1a0 chore: add doc for martkeplace (#4395)
Summary:
Provide a documentation about marketplace feature of Flipper.

This should cover:
1. Introduction of the feature (plugin discovery, auto update)2.
2. Marketplace server - to list available plugins
3. Flipper settings - describe the new settings and how to enable4.

Closes https://github.com/facebook/flipper/issues/3545.

## Changelog

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

Reviewed By: antonk52

Differential Revision: D42918936

Pulled By: passy

fbshipit-source-id: 50b10178b569ecc6ea65b736ea58db401cf686c6
2023-02-06 08:17:47 -08:00
Anton Kastritskiy
1d2bc3373d automatic update for docusaurus-plugin-internaldocs-fb@1.7.0
Differential Revision: D42919621

fbshipit-source-id: 92167e6b54a0b617e5ab64a92e96a85d2fd8e267
2023-02-02 02:45:10 -08:00
John Knox
227f53f6a0 automatic update for docusaurus-plugin-internaldocs-fb@1.5.0
Reviewed By: antonk52

Differential Revision: D42709599

fbshipit-source-id: 0b0a3b66ceb8c00e2302eb08b7d52d682d429023
2023-01-25 04:09:07 -08:00
Anton Kastritskiy
b8f21f0d65 automatic update for docusaurus-plugin-internaldocs-fb@1.4.0
Reviewed By: lblasa

Differential Revision: D42546365

fbshipit-source-id: 038a34b0dc265850f82c2435b7dd86e69c8a8cd1
2023-01-18 02:24:43 -08:00
Anton Nikolaev
f8161d67a0 Fix generating separate fb-internal docs for plugins
Reviewed By: lblasa

Differential Revision: D42370725

fbshipit-source-id: 0f0a1c9676aaa8a57ed8e4a6e973ef476ca757d3
2023-01-06 09:29:44 -08:00
Luke De Feo
3deaa15273 Add Logging @ FB page
Reviewed By: passy

Differential Revision: D42386021

fbshipit-source-id: cd89415a3845bffa9edd9b3a63d4d1a4d5b8d56c
2023-01-06 06:52:19 -08:00
Anton Kastritskiy
2b7ceb9407 bump Static Docs
Reviewed By: jknoxville

Differential Revision: D41800524

fbshipit-source-id: 4dbe0599bb56c857d6b5c064a43cc28ba0f58b04
2022-12-07 05:26:39 -08:00
Luke De Feo
999e7d203a Update ui debugger docs
Reviewed By: antonk52

Differential Revision: D41768712

fbshipit-source-id: a61c07859cd419b30025f3a07e51d97a90215b7a
2022-12-06 10:00:26 -08:00
John Knox
95a3a3d922 Fix style guide internally
Summary:
The site loads the style guide in an iframe so that it's css is isolated from the main sites styles.

But it doesn't know how big to render the iframe, because it doesn't know the size of its contents.
Previously, the js running inside the iframe measured itself and then accessed itself using the parents frame and modified it's own size to match.

That doesn't work anymore because the iframe isn't allowed to interact directly with its parent.
So instead, i'm using message passing.

Also changing MutationObserver to ResizeObserver because the former does not always fire when new css gets loaded and applied.

Reviewed By: aigoncharov

Differential Revision: D41735809

fbshipit-source-id: 9e84a9b20741f5470012e25f240fb6a2b494f7e3
2022-12-06 09:38:11 -08:00
Kevin Strider
ced04c7cec Under the Hood - Part 4
Summary:
This diff includes minor changes to the pages within the Under the Hood section of Flipper Docs.

The page Creating Plugins -> Desktop Plugin APIs -> QPL Linting -> Building a Linter is now removed from the sidebar.

Reviewed By: lblasa

Differential Revision: D41533283

fbshipit-source-id: 63e50210815fe2b67ea54991eb8a7bc16e04e1be
2022-11-28 03:46:26 -08:00
Kevin Strider
fbae680e06 Under the Hood - Part 1
Summary: This diff includes minor changes to the pages within the Under the Hood section of Flipper Docs.

Reviewed By: passy

Differential Revision: D41521538

fbshipit-source-id: 35b372ffdde118faef2732e4cb7684fc9df18f87
2022-11-24 09:54:37 -08:00
Pascal Hartig
5e200dd7ec Add docs about code freeze
Summary: Wanted to write about this for a while as we're reinventing the rules every time we get to this time of the year. :)

Reviewed By: LukeDefeo, antonk52

Differential Revision: D41434886

fbshipit-source-id: 445c6c259bee74874472cf246fdc209e82514fcd
2022-11-21 05:05:54 -08:00
Lorenzo Blasa
9aee09bc70 Data pipeline deep dive
Summary: ^

Reviewed By: antonk52

Differential Revision: D41304481

fbshipit-source-id: 7ebb57d1b6940483dd273c69f9790c346363a2d0
2022-11-15 06:18:12 -08:00
Lorenzo Blasa
6f8b57bbdd Data Pipelines overview
Summary: Pretty much copy/paste from Pascal's post on data pipelines as it provides a quick overview of things involved

Reviewed By: passy

Differential Revision: D41274753

fbshipit-source-id: 337b034d2460ba448582b9dea70b835898627faa
2022-11-15 06:18:12 -08:00
Lorenzo Blasa
4ba34fcb4f Categorise 'Under the Hood -> Meta' section
Summary: ^

Reviewed By: passy

Differential Revision: D41274192

fbshipit-source-id: 602a3c79e971d6f5ea8617ac638c95131e59a820
2022-11-15 06:18:12 -08:00
Lorenzo Blasa
66984c6d13 Organise 'Under the Hood'
Summary: This change alphabetically sorts the 'Under the Hood' section and adds a 'Meta' parent category for everything that is internal as to add a visual cue of what is internal and whats not.

Reviewed By: passy

Differential Revision: D41273678

fbshipit-source-id: 1acf8da184762d5924bff90b6691be1e4be92c46
2022-11-15 06:18:12 -08:00
John Knox
c8cbdffa96 Upgrade docusaurus plugin
Summary: Doing this to get better logging in case we get transient failures again when fetching code snippets

Reviewed By: antonk52

Differential Revision: D41118788

fbshipit-source-id: f6cb9e20a08920f5935b14d765ac4c053ac5c78f
2022-11-08 06:49:27 -08:00
John Knox
2736cfeeb6 Dont gitignore website/yarn.lock
Reviewed By: passy

Differential Revision: D40936268

fbshipit-source-id: c28ad2f825b846b827ddffb555850e6adb10d83e
2022-11-02 05:23:55 -07:00
Anton Kastritskiy
c38fc9c0e4 update docusaurus-plugin-internaldocs-fb
Reviewed By: lblasa

Differential Revision: D40550389

fbshipit-source-id: bab1ac0d627cc2384a3918cde7667441edf4c614
2022-10-20 06:29:49 -07:00
Lorenzo Blasa
85c4178c22 antd update
Summary:
^

allow-large-files

Reviewed By: mweststrate

Differential Revision: D40319006

fbshipit-source-id: 79fc39dfb967d780b947a5ef302abdd0be9b5ee6
2022-10-18 03:32:31 -07:00
Anton Kastritskiy
2fb90369f1 automatic update for docusaurus-plugin-internaldocs-fb@1.0.0,@docusaurus/core@2.1.0,@docusaurus/plugin-client-redirects@2.1.0,@docusaurus/preset-classic@2.1.0
Differential Revision: D39310992

fbshipit-source-id: 18dd5e935f76fa99d4a4b377b9f5c5ac271c2e52
2022-09-08 06:56:06 -07:00
Deborah Attuah
95af1428ce automatic update for docusaurus-plugin-internaldocs-fb@0.12.3
Reviewed By: antonk52

Differential Revision: D39169091

fbshipit-source-id: 249c5f092c1b0f8e0d6f303e6ac96cdee019ecfa
2022-08-31 07:59:11 -07:00
Luke De Feo
4d5b358beb Fix broken links
Reviewed By: jknoxville

Differential Revision: D38387869

fbshipit-source-id: fa97b9b85d244db338ff89c0df474e5f3d0ff7aa
2022-08-03 09:17:20 -07:00
Anton Kastritskiy
96a23495c9 automatic update for docusaurus-plugin-internaldocs-fb@0.12.2
Reviewed By: jknoxville

Differential Revision: D38074467

fbshipit-source-id: b929f50402ca438c0359bb44ae7de335018a88f9
2022-07-22 09:07:10 -07:00
Anton Kastritskiy
013e964287 fix 404 pages
Reviewed By: jknoxville, passy

Differential Revision: D37614048

fbshipit-source-id: 58593b45193382ccdcc8a7eeb77335e663e8eb95
2022-07-05 08:19:08 -07:00
John Knox
569283a1a7 Upgrade staticdocs
Summary: This is required to enable off-VPN access to the site

Reviewed By: antonk52

Differential Revision: D37611617

fbshipit-source-id: 7599fc22766315d799345e955fc87ff3a7ddf50f
2022-07-05 04:27:19 -07:00
Pascal Hartig
c1d959d62e Start a docs page
Summary: Wanted to write down the not-obvious release procedure somewhere. We can extend this with some troubleshooting procedures.

Differential Revision: D37463848

fbshipit-source-id: 899cdfd12fdb0647579271d883f499872167743f
2022-06-28 03:43:59 -07:00
Anton Kastritskiy
2d4ae3961a update docusaurus to v2.0.0-beta.21
Reviewed By: passy

Differential Revision: D37377632

fbshipit-source-id: 3cb3f9801db393dfb4b6fef6c92f758a8be55e84
2022-06-23 08:41:12 -07:00
Kevin Strider
b81fb44017 new Contributing to the Documentation section
Summary:
This is a new section under 'Contributing to the Documentation', in the 'Under the Hood' menu.

It includes two new pages:

* Documentation Formatting Tips (created here.  For content, see D37006489)
* Writing Guide (created here.  For content, see D37006980)

Setup in sidebar.js.

Reviewed By: lblasa

Differential Revision: D37004092

fbshipit-source-id: 5fa0a38632f7fa9d9178b69a89d9b21f5bda39ab
2022-06-09 06:10:06 -07:00
Kevin Strider
b7977a954a sidebar.js
Summary: Tiny change to capitalization of a sub-menu

Reviewed By: nikoant

Differential Revision: D36931810

fbshipit-source-id: 52e6030f75e547e0936893830c702a6939ff5775
2022-06-06 09:18:24 -07:00
Anton Nikolaev
0a8577e948 Show all available sections in sidebar
Summary:
Kevin Strider after reviewing Flipper docs structure suggested to show all sections in sidebar. This will make it easier for users to navigate website as they will be able to find all the content through sidebar menu.

Before that only current section items were shown, so e.g. if user clicks "Learn more" on the start page they open "Features" section and it's not clear that there are a lot of other content (Setup, Creating Plugins, Under the Hood) which is only available through the top menu.

Reviewed By: antonk52

Differential Revision: D36762008

fbshipit-source-id: a36cfb77e5d2efd4f5d8795d1c68e46d07ed79e1
2022-05-31 02:20:39 -07:00
Pascal Hartig
8c4b494d32 Add a note about changelogs
Summary:
LukeDefeo called out that there's currently no guide for how to create changelog items.

I couldn't find another good page to add this to. Might be a good idea to expand this with further tips for making good contributions.

Reviewed By: LukeDefeo, nikoant

Differential Revision: D36702634

fbshipit-source-id: 15bc1dcf420ea923a714929eff8ac817efa56ceb
2022-05-30 03:44:28 -07:00
Kevin Strider
b75eeb941b client-plugin-lifecycle.mdx (Creating Plugins - Client Plugin Lifecycle)
Summary:
Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

This diff includes a new version of the images:
bg-plugin-lifecycle.png
regular-plugin-lifecycle.png

The old versions have been renamed to:
bg-plugin-lifecycle.bak
regular-plugin-lifecycle.bak

Reviewed By: aigoncharov

Differential Revision: D36630758

fbshipit-source-id: 29922750364e1dd6f959bd297e3b5d5e6cf1a9ac
2022-05-25 03:42:25 -07:00
Kevin Strider
ee006a961b architecture.mdx (Creating Plugins - Architecture)
Summary:
Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

This diff includes a new version of the image 'flipper-communication-diagram.png'.
The old version has been renamed to 'flipper-communication-diagram.bak'

Reviewed By: aigoncharov

Differential Revision: D36628993

fbshipit-source-id: cb59785777926b4fb8b8bb3be2aa2439d3a580d0
2022-05-25 03:26:55 -07:00
Andrey Goncharov
29eae00309 Blog post "Headless Flipper - what it means for plugin developers"
Reviewed By: passy, antonk52

Differential Revision: D36480939

fbshipit-source-id: dacbdb1af4382e9b52de79403e6aea9a0c740b1c
2022-05-20 09:47:22 -07:00
Anton Nikolaev
566f7108c9 Troubleshooting docs structure refactored
Summary: Troubleshooting docs structure refactored. This should fix publishing of docs on GitHub which is currently failing, because of link to fb-only page from public page: https://github.com/facebook/flipper/actions/runs/2351680003.

Reviewed By: passy

Differential Revision: D36513180

fbshipit-source-id: c0339d437f560464e771e46dfc0a55782faf6a54
2022-05-19 07:43:09 -07:00
Kevin Strider
81d21c6e8b new sub-folder 'Building a Desktop Plugin' (Creating Plugins)
Summary:
Major changes to js-custom.mdx

The content for the following pages is moved to the new sub-folder 'Building a Desktop Plugin':
* js-custom.mdx
* js-setup.mdx
* js-table.mdx

The Title and Sidebar labels have been changed accordingly.

Changes made to sidebar.js,

Reviewed By: lblasa

Differential Revision: D36415874

fbshipit-source-id: 8f1634abc1459d1905da62a1b76bac4b621d0da5
2022-05-19 04:31:06 -07:00
Kevin Strider
0b16f3a031 NEW troubleshooting section (SetUp)
Summary: Restyle of Trobleshooting, which involved changes to sidebar.js and splitting up the previous troubleshooting page into five separate pages.

Reviewed By: lblasa

Differential Revision: D36282539

fbshipit-source-id: e60834e2b4d98b70b23bb11309c3438d85e4de0e
2022-05-11 08:58:34 -07:00