Commit Graph

87 Commits

Author SHA1 Message Date
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
Anton Nikolaev
11b63f18cb Bump dns-packet dependency to fix vulnerability warning
Summary: Github says dns-packet < 5.2.2 is vulnerable, so pinning it to ensure we use fixed version

Reviewed By: passy

Differential Revision: D28714350

fbshipit-source-id: 836061216826948d2fe9320137a91f4fbdad4211
2021-05-26 13:10:17 -07:00
Anton Nikolaev
6a777f7690 Bump browserslist dependency to fix vulnerability warning
Summary: Github says browserslist < 4.16.5 is vulnerable, so I'm pinning it everywhere.

Reviewed By: muraziz

Differential Revision: D28713858

fbshipit-source-id: b512dc48ded88bdf90556b58bd1e67cacbbc8a3e
2021-05-26 12:01:18 -07:00
Chaiwat Ekkaewnumchai
23f15c525a Upgrade docusaurus to Upgrade postcss Vulnerability
Summary: Because of the `postcss` vulnerability, I tried to update postcss directly. However, forcing version 8 with previous version of docusaurus threw error. Hence, I upgraded docusaurus instead.

Reviewed By: jknoxville

Differential Revision: D28350050

fbshipit-source-id: ce37a01e3ec817fb006100691bc1d9b1cc33db17
2021-05-12 07:49:14 -07:00
Chaiwat Ekkaewnumchai
d80f4c75a6 Fix Vulnerability in trim
Summary: per title

Reviewed By: fabiomassimo

Differential Revision: D28342511

fbshipit-source-id: 9ed7f67da6a566ba77ac1b9a2756fcadfcf8ec21
2021-05-11 03:13:23 -07:00
Chaiwat Ekkaewnumchai
342872dafa Fix Vulnerability in ua-parser-js
Summary: per title

Reviewed By: passy

Differential Revision: D28285326

fbshipit-source-id: b7bd652f2068a21d5842fd364aea24fc58625ef3
2021-05-07 04:39:20 -07:00
Chaiwat Ekkaewnumchai
89d42611c7 Fix Vulnerability in lodash
Summary: per title

Reviewed By: passy

Differential Revision: D28285325

fbshipit-source-id: 040d18fc99fe985c68c7972553e649a7f6415de5
2021-05-07 04:27:19 -07:00
Pascal Hartig
b80ab0188b Update is-svg (security fix)
Summary: Fixes https://github.com/facebook/flipper/security/dependabot/website/yarn.lock/is-svg/open

Reviewed By: jknoxville

Differential Revision: D27337757

fbshipit-source-id: 9f547b6fa693b8164c66ccd1e4550a047b634cbb
2021-03-26 05:47:29 -07:00
Pascal Hartig
cf4d8d4b1a Bump ssri (security fix)
Summary: Fixes https://github.com/facebook/flipper/security/dependabot/website/yarn.lock/ssri/open

Reviewed By: jknoxville

Differential Revision: D27337656

fbshipit-source-id: e17e7da0682d6ee9daaff988f407f88c1f83b4e0
2021-03-26 05:47:29 -07:00
Pascal Hartig
2f92ce9781 Update deps
Summary: Cleaning up the `resolutions` before going through the next batch of vulns.

Reviewed By: jknoxville, mweststrate

Differential Revision: D27337444

fbshipit-source-id: 5f042b200ac7a6f50efc7faf3c31770c263e401b
2021-03-26 05:47:29 -07:00
John Knox
80b94e79ee Upgrade docusaurus
Summary: Upgrading docusaurus to fix react-dev-utils vulnerability which is a transitive dependency.

Reviewed By: mweststrate

Differential Revision: D27010446

fbshipit-source-id: 3caf73029de57067c6060c34874539079721eb59
2021-03-15 04:35:57 -07:00
Pascal Hartig
c4cf46207b Upgrade docusaurus tools
Summary: Wanted to have jknoxville's new start-fb shortcut.

Reviewed By: jknoxville

Differential Revision: D26978911

fbshipit-source-id: 3f6a93381151df4e08e887f76c0240baee82fb82
2021-03-11 08:38:19 -08:00
Pascal Hartig
d12501677d Upgrade elliptic for for CVE-2020-28498
Summary:
Currently failing OSS validation because we have a GitHub
security alert.

Reviewed By: fabiomassimo

Differential Revision: D26944823

fbshipit-source-id: 3075639aae97b1d68b19e5149ebd7a7f7ac419e1
2021-03-10 05:05:33 -08:00
Pascal Hartig
7202fb2abb Fix prismjs security vuln (take II)
Summary:
The previous attempt kept the vulnerable dependency around in `yarn.lock`. Now
it's being resolved to the "fixed" version.

Reviewed By: mweststrate

Differential Revision: D26778354

fbshipit-source-id: 17d8e2f1bbcd28939d85e5a976da0bd074ea25e2
2021-03-03 05:41:28 -08:00
Michel Weststrate
961a24f72e Upgraded prismjs in website/ to address security vulnerability
Summary: See task

Reviewed By: passy

Differential Revision: D26733333

fbshipit-source-id: d9057f39a38303ea404c378208cee4c28c8d5f72
2021-03-02 04:02:02 -08:00
John Knox
08b594db5c 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
2021-02-22 09:17:44 -08:00
John Knox
e250bda60d Fix cert dialog popup on open-source sites
Summary:
Upgrades the FB-internal documentation plugin, to no longer call the internal api that requires auth, for external viewers.

Context: https://fb.workplace.com/groups/654274975334601/permalink/1288672008171584/

Reviewed By: justintrudell

Differential Revision: D26252469

fbshipit-source-id: 31068534ce79a7959c38c6e66e6a9cf12371e228
2021-02-04 11:48:57 -08:00
Pascal Hartig
f170f53131 Bump immer in /website to 8.0.1
Summary: For security fix, etc.

Reviewed By: nikoant

Differential Revision: D25995112

fbshipit-source-id: 0e25bc710841ccaa290f159631e4ced1514351e5
2021-01-21 04:08:47 -08:00
Pascal Hartig
d6be4919e6 Upgrade axios
Summary: Got a GitHub sec advisory.

Reviewed By: jknoxville

Differential Revision: D25804236

fbshipit-source-id: dac724b1070a06120fa62e101ab3673a672dfd8f
2021-01-06 08:53:41 -08:00
John Knox
c460cb767f Fix deleted page redirects
Summary:
The redirects we added inline in the deleted pages don't work when there's a baseUrl.

This is because it's the standard react-router Redirect component, which knows nothing about docusaurus sites.

We could get around that by adding `useBaseUrl()` calls around all of them, but that's not great.
So changing to using declarative redirects instead, where they are all put in config. This automatically takes care of base urls, and reduces copy-pasted code.

Reviewed By: passy

Differential Revision: D25780599

fbshipit-source-id: c67d3643ab28f0fcd440904baf54c67687781686
2021-01-05 09:24:48 -08:00
Anton Nikolaev
dc50fb3f63 Release infra: release ent diagram updated using mermaid
Summary:
Updated the release ent diagram using mermaid lib added in the previous diff.

nocommit until "docusaurus-plugin-internaldocs-fb" re-pointed back to npm in package.json.

Reviewed By: jknoxville

Differential Revision: D25594333

fbshipit-source-id: fd0b961c5265b8284d3c2e56e17b56fc38cc72c5
2020-12-17 03:57:42 -08:00
John Knox
02c940b048 Enable code snippets in docusaurus sites
Summary:
Lets you embed code in markdown with the following syntax:

````
```js file=../../some-file.js start=start_marker end=end_marker
```
````

Reviewed By: nikoant

Differential Revision: D25460060

fbshipit-source-id: 29e242d6d896e7c8256371483d72104889b9daa9
2020-12-10 05:55:42 -08:00