Commit Graph

108 Commits

Author SHA1 Message Date
Anton Kastritskiy
53e44da116 automatic update for docusaurus-plugin-internaldocs-fb@1.16.2
Reviewed By: lblasa

Differential Revision: D50408568

fbshipit-source-id: 068675c51049cb24fd69417e3bd0f7820d558b5e
2023-10-18 09:57:42 -07:00
Anton Kastritskiy
04a26d2574 automatic update for docusaurus-plugin-internaldocs-fb@1.16.1
Reviewed By: nikoant

Differential Revision: D50087935

fbshipit-source-id: 1ae7c52c87b731d84e64bdea75f8b7f901a1def3
2023-10-10 14:26:03 -07:00
Pascal Hartig
a4515acc0f Upgrade docusaurus
Summary: $title

Reviewed By: antonk52

Differential Revision: D49907484

fbshipit-source-id: 9107c0e99fb4e8965c8ff4e2db8697bde627bc15
2023-10-05 04:10:43 -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
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
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
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
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 Kastritskiy
2b7ceb9407 bump Static Docs
Reviewed By: jknoxville

Differential Revision: D41800524

fbshipit-source-id: 4dbe0599bb56c857d6b5c064a43cc28ba0f58b04
2022-12-07 05:26:39 -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
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
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
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
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
Anton Kastritskiy
360c52c67c automatic update for ansi-html@0.0.8
Reviewed By: nikoant

Differential Revision: D35213089

fbshipit-source-id: 4e0d7ca6b341c8caccd1ef69a8b396ab3b6bf7ab
2022-03-29 07:06:58 -07:00
John Knox
94ae12e00e automatic update for docusaurus-plugin-internaldocs-fb@0.10.7
Reviewed By: passy

Differential Revision: D34680094

fbshipit-source-id: dd5b9ff27bf4f90b4e5624195a6aaee9031f9ffd
2022-03-07 03:50:10 -08:00
Andrey Goncharov
e26ba0d945 Encapsulate styleguide styles
Summary: Prevent leaking Flipper styles and antd styles into the website by embedding the styleguide into an iframe.

Reviewed By: nikoant

Differential Revision: D34522771

fbshipit-source-id: a05bf1e7f54fe172fb012a0a02296b3a4e0100f1
2022-02-28 09:54:03 -08:00
Andrey Goncharov
342c316c84 Add style guide
Summary:
allow-large-files
See D34339758

Reviewed By: jknoxville

Differential Revision: D34378571

fbshipit-source-id: a7c845f4676b25998dc63bf3029c5d1ec8205611
2022-02-22 08:25:28 -08:00
John Knox
ab0775a987 automatic update for docusaurus-plugin-internaldocs-fb@0.10.6
Reviewed By: antonk52

Differential Revision: D34343082

fbshipit-source-id: d6baf684e951e6ad4099034595331f5ed9e764d5
2022-02-21 04:23:16 -08:00
Anton Kastritskiy
138f222cde automatic update for docusaurus-plugin-internaldocs-fb@0.10.5
Reviewed By: lblasa

Differential Revision: D34180213

fbshipit-source-id: ac5ab5b723b863df0357e988c79961ff3ee9469f
2022-02-14 08:11:56 -08:00
John Knox
f94a3c75a4 Upgrade shelljs
Summary: Upgrading to fix https://nvd.nist.gov/vuln/detail/CVE-2022-0144

Reviewed By: antonk52

Differential Revision: D33743443

fbshipit-source-id: fe55b64c068125536b22c8ef94ccd262733938cc
2022-01-24 09:32:23 -08:00
Anton Kastritskiy
9aff968938 automatic update for docusaurus-plugin-internaldocs-fb@0.10.4
Reviewed By: nikoant

Differential Revision: D33713704

fbshipit-source-id: 2230e465bcf4481f4ee17ed7816c0d81cd4ee4aa
2022-01-24 05:04:13 -08:00
Pascal Hartig
2907f77c0b Upgrade Docusaurus
Reviewed By: nikoant

Differential Revision: D32723714

fbshipit-source-id: 83aeffc798d8dfb775c8e4a693591afbe018bc01
2021-12-01 03:15:08 -08:00
Pascal Hartig
dbbda21b55 Upgrade docusaurus
Summary: Was gonna write some docs so wanted to use the opportunity to get docusaurus up-to-date.

Reviewed By: jknoxville

Differential Revision: D31956185

fbshipit-source-id: be7304ac2def5bb5576e076c1c13f79cb2b4bab3
2021-10-27 04:29:04 -07:00
Pascal Hartig
92efdd7272 Dep bump
Summary: Small bumps to get ahead of dependabot.

Reviewed By: mweststrate

Differential Revision: D31574709

fbshipit-source-id: d7e44d81277adc3a5b179ed29be19f04129b7292
2021-10-14 03:20:36 -07:00
Pascal Hartig
a7e02f234a Set license to MIT
Summary:
The entire repo is MIT (unless stated otherwise) but
without the flag, yarn is very noisy on every startup.

{F668266100}

Reviewed By: timur-valiev

Differential Revision: D31429016

fbshipit-source-id: 11a963181dc309a251e6c71a9a16ab93d12b7f93
2021-10-06 08:32:58 -07:00
Pascal Hartig
94f46046ee Upgrade deps
Summary: Fixing some docs, decided to bump deps first.

Reviewed By: timur-valiev

Differential Revision: D31429002

fbshipit-source-id: 27bd9ba4c5c554ed79859d40036a28b39aa311ae
2021-10-06 08:32:58 -07:00
Michel Weststrate
c4538c48d6 Remove deprecated documentation
Summary: Sandy is idiomatic now, cleaned up old docs to avoid confusion as in https://github.com/facebook/flipper/issues/2611.

Reviewed By: passy

Differential Revision: D30908794

fbshipit-source-id: c4076f1d24b193f71923d19eeed631763bb9dacb
2021-09-14 03:12:41 -07:00
Pascal Hartig
dcfd356221 Upgrade docusaurus and other deps
Summary: Addresses the "security" vulnerability for immer.

Reviewed By: mweststrate

Differential Revision: D30809382

fbshipit-source-id: 3c2ac080ec3a805f79844cec4bbf18c35b5f47ca
2021-09-09 03:31:46 -07:00
Pascal Hartig
c4ccdc8d9f Bump resolutions
Summary: Ugh, I hate this.

Reviewed By: fabiomassimo

Differential Revision: D30450443

fbshipit-source-id: 34281bf8f6a2650a92887f5fa9887e30bfa2731f
2021-08-23 05:22:56 -07:00
Pascal Hartig
19b4742483 Bump dependencies
Summary: Making sure we're staying up-to-date.

Reviewed By: mweststrate

Differential Revision: D30438488

fbshipit-source-id: 38a0daa18102ebc4f16cec382cef067757a5c8f5
2021-08-20 04:47:09 -07:00
Adetomiwa Adesanya
5640a175af Update package version on Flipper site.
Summary: Update flipper to use latest docusaurus-plugin-internaldocs-fb package version.

Reviewed By: jknoxville

Differential Revision: D30280130

fbshipit-source-id: 93dc1a931cc4244ce7d95c6cd80506e17275c069
2021-08-13 02:45:59 -07:00
Adetomiwa Adesanya
0df3a19e98 Update package version on Flipper site.
Summary: Update flipper to use latest docusaurus-plugin-internaldocs-fb package version.

Reviewed By: nikoant

Differential Revision: D30107938

fbshipit-source-id: 42ec4614d3e1292171b2d1a26378a1bd6ab1853c
2021-08-04 15:44:56 -07:00
Adetomiwa Adesanya
54c6149891 Update Flipper to use latest plugin version.
Summary: Update flipper to use latest docusaurus-plugin-internaldocs-fb package version.

Reviewed By: jknoxville

Differential Revision: D29938558

fbshipit-source-id: 3e43ae93e1c39674e7ae4cee7af2b23cab019a21
2021-07-27 10:03:50 -07:00
Michel Weststrate
9c4deb3501 Fix yarn start crashing with error
Summary:
`yarn start` in `website` crashed with

```
/Users/mweststrate/fbsource/xplat/sonar/website/node_modules/docusaurus/core/bin/docusaurus.js:50
  const siteDocusaurusPackagesForUpdate = Object.keys(sitePkg.dependencies)
                                                 ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.<anonymous> (/Users/mweststrate/fbsource/xplat/sonar/website/node_modules/docusaurus/core/bin/docusaurus.js:50:50)
```

This diff adds an empty `dependencies` section as work around. Proper patch has been made in:

https://github.com/facebook/docusaurus/pull/5204

Reviewed By: nikoant

Differential Revision: D29844597

fbshipit-source-id: 29cfad53d9ca785dd9d93c4800647add219a48ba
2021-07-22 04:17:45 -07:00
Adetomiwa Adesanya
f127e5df0b Update flipper to use latest version of docusaurus-plugin-internaldocs-fb package.
Summary: Update flipper to use latest version.

Reviewed By: jknoxville

Differential Revision: D29713151

fbshipit-source-id: 1e83c94d81a5c7820ba4a8865fe3fb82c5ec40ad
2021-07-15 08:48:45 -07:00
Adetomiwa Adesanya
a3bd6a9b98 Update flipper to use latest version of docusaurus-plugin-internaldocs-fb package.
Summary: Update flipper to use latest version.

Reviewed By: jknoxville

Differential Revision: D29695695

fbshipit-source-id: fd663e06685ff7d524b74edcfb0f8757ccc23ac3
2021-07-14 07:15:59 -07:00
Adetomiwa Adesanya
abfa50c232 Enable Inpage Editor On flipper sites.
Summary: The inpage editor is now enabled on flipper sites {emoji:1f973}{emoji:1f973}.

Reviewed By: jknoxville

Differential Revision: D29694782

fbshipit-source-id: 7683892adfd54c2ec6644b1a0ead45124692cf8e
2021-07-14 05:28:10 -07:00
Anton Nikolaev
e4fb2907fd Auto-generate plugin docs
Summary:
This diff changes the way on how plugin documentation is produced. Instead of keeping plugin documentation together with other docs, we will now keep it together with plugin code. There are multiple advantages of such solution:
1. We are generating docs for every plugin in a standartised way so all of them looks similar. We can also use plugin metadata for generation as well (e.g. take title, icon, oncall name etc from package.json).
2. Standartised plugin docs make it possible to build docs both for websites (public and internal) and for embedding into Flipper.
3. It will hopefully incentivise authors to write docs as they will be a part of plugin "package".
4. We can scaffold documentation template using scarf to further incentivise filling it.

Reviewed By: jknoxville

Differential Revision: D29378053

fbshipit-source-id: 66ea48dc9ba225fabfb256ae6a10f8c81eef6f5f
2021-06-29 13:02:05 -07:00
Pascal Hartig
16d96afe89 Pin glob-parent
Summary:
Another security vulnerability. We can't pin glob-parent directly
but chokidar is quite old and the reason for pulling in the vulnerable dep.

Reviewed By: nikoant

Differential Revision: D29099218

fbshipit-source-id: d27dc81bd16c5b71e9d35d487d5556e1f93a4e2f
2021-06-15 08:41:18 -07:00
Pascal Hartig
66510d0932 Upgrade docusaurus and other deps
Summary: Upgrading to Docusaurus 2 beta and a bunch of other deps to address some security warnings.

Reviewed By: fabiomassimo

Differential Revision: D29036647

fbshipit-source-id: c11c3c16eaf4ae54405760d69c8170b6fa1224ad
2021-06-11 06:40:53 -07:00
Pascal Hartig
543b14c2e1 Fix ws vuln in website/
Summary: Addresses https://github.com/facebook/flipper/security/dependabot/website/yarn.lock/ws/open

Reviewed By: nikoant

Differential Revision: D28831764

fbshipit-source-id: 12b9f5134393ca245e0be8e1ea5eb676b82d9a10
2021-06-02 13:27:31 -07:00