Skip to content

Commit ab1cf60

Browse files
authored
Merge branch 'facebook:main' into feat/aliases
2 parents 68d729c + 60d62d1 commit ab1cf60

File tree

1,537 files changed

+155827
-103983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,537 files changed

+155827
-103983
lines changed

.cspell.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
"__snapshots__",
2929
"website/src/data/users.tsx",
3030
"website/src/data/tweets.tsx",
31+
"website/docusaurus.config.localized.json",
32+
"website/_dogfooding/_pages tests/diagrams.mdx",
3133
"*.xyz",
3234
"*.docx",
35+
"*.gitignore",
3336
"versioned_docs",
34-
"*.min.*"
37+
"*.min.*",
38+
"jest/vendor"
3539
],
3640
"ignoreRegExpList": ["Email", "Urls", "#[\\w-]*"]
3741
}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04",
2+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
33
"settings": {
44
"[typescript]": {
55
"editor.defaultFormatter": "esbenp.prettier-vscode",

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ build
88
coverage
99
jest.config.js
1010
jest.transform.js
11+
jest/vendor
1112
examples/
1213

1314
packages/lqip-loader/lib/

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ module.exports = {
6666
'@docusaurus',
6767
],
6868
rules: {
69+
'react/jsx-uses-react': OFF, // JSX runtime: automatic
70+
'react/react-in-jsx-scope': OFF, // JSX runtime: automatic
6971
'array-callback-return': WARNING,
7072
camelcase: WARNING,
7173
'class-methods-use-this': OFF, // It's a way of allowing private variables.
@@ -259,6 +261,9 @@ module.exports = {
259261
},
260262
{pattern: '@jest/globals', group: 'builtin', position: 'before'},
261263
{pattern: 'react', group: 'builtin', position: 'before'},
264+
{pattern: 'react-dom', group: 'builtin', position: 'before'},
265+
{pattern: 'react-dom/**', group: 'builtin', position: 'before'},
266+
{pattern: 'stream', group: 'builtin', position: 'before'},
262267
{pattern: 'fs-extra', group: 'builtin'},
263268
{pattern: 'lodash', group: 'external', position: 'before'},
264269
{pattern: 'clsx', group: 'external', position: 'before'},
@@ -374,6 +379,8 @@ module.exports = {
374379
// locals must be justified with a disable comment.
375380
'@typescript-eslint/no-unused-vars': [ERROR, {ignoreRestSiblings: true}],
376381
'@typescript-eslint/prefer-optional-chain': ERROR,
382+
'@docusaurus/no-html-links': ERROR,
383+
'@docusaurus/prefer-docusaurus-heading': ERROR,
377384
'@docusaurus/no-untranslated-text': [
378385
WARNING,
379386
{
@@ -494,5 +501,14 @@ module.exports = {
494501
files: ['packages/eslint-plugin/**/*.{js,ts}'],
495502
extends: ['plugin:eslint-plugin/recommended'],
496503
},
504+
{
505+
files: [
506+
'packages/docusaurus-plugin-debug/**',
507+
'packages/docusaurus/src/**',
508+
],
509+
rules: {
510+
'@docusaurus/prefer-docusaurus-heading': OFF,
511+
},
512+
},
497513
],
498514
};

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: Have you read the Contributing Guidelines on issues?
2828
options:
29-
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).
29+
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
3030
required: true
3131

3232
- type: checkboxes

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ body:
2727
attributes:
2828
label: Have you read the Contributing Guidelines on issues?
2929
options:
30-
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).
30+
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
3131
required: true
3232

3333
- type: textarea

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
attributes:
1616
label: Have you read the Contributing Guidelines on issues?
1717
options:
18-
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).
18+
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
1919
required: true
2020

2121
- type: textarea

.github/ISSUE_TEMPLATE/proposal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
attributes:
2424
label: Have you read the Contributing Guidelines on issues?
2525
options:
26-
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).
26+
- label: I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
2727
required: true
2828

2929
- type: textarea

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ updates:
77
open-pull-requests-limit: 99
88
labels:
99
- 'pr: dependencies'
10+
- package-ecosystem: 'npm'
11+
directory: '/'
12+
schedule:
13+
interval: 'daily'
14+
# Disable version updates for npm dependencies
15+
# https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file
16+
open-pull-requests-limit: 0
17+
labels:
18+
- 'pr: dependencies'

.github/workflows/argos.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Argos CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
types:
9+
# Those 3 are the default PR workflow activity types,
10+
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
11+
- opened
12+
- synchronize
13+
- reopened
14+
# We want trigger workflow on labeled too!
15+
- labeled
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
take-screenshots:
23+
# Argos is heavy to run
24+
# We only want to trigger Argos on PRs with the 'Argos' label
25+
# See https://stackoverflow.com/questions/62325286/run-github-actions-when-pull-requests-have-a-specific-label
26+
if: ${{ (github.event_name != 'pull_request' && github.ref_name == 'main') || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Argos')) }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Check out repository code
30+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+
32+
- name: Use Node.js
33+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
34+
with:
35+
node-version: 18
36+
37+
- name: Install dependencies
38+
run: yarn install --frozen-lockfile
39+
40+
- name: Install Playwright browsers
41+
run: npx playwright install --with-deps chromium
42+
43+
- name: Build website fast
44+
run: yarn build:website:fast
45+
46+
- name: Take Argos screenshots
47+
run: yarn argos:screenshot

0 commit comments

Comments
 (0)