Skip to content

Commit

Permalink
chore: update docusaurus (#12500)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 5, 2022
1 parent 8803091 commit 095f65e
Show file tree
Hide file tree
Showing 52 changed files with 582 additions and 416 deletions.
3 changes: 0 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ logFilters:
nodeLinker: node-modules

packageExtensions:
"@docusaurus/plugin-pwa@*":
peerDependencies:
"@babel/core": ^7.8.0
react-dev-utils@*:
peerDependencies:
typescript: ^4.0.1
Expand Down
2 changes: 1 addition & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ CLI options take precedence over values from the [Configuration](Configuration.m

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion docs/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion docs/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `jest` object is automatically in scope within every test file. The methods

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion docs/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {jest} from '@jest/globals';

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
3 changes: 2 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ module.exports = {
},
algolia: {
indexName: 'jest-v2',
apiKey: '833906d7486e4059359fa58823c4ef56',
appId: 'HP439UUSOL',
apiKey: 'e5e670fd16f8f17caada79d6b0931682',
contextualSearch: true,
},
},
Expand Down
10 changes: 5 additions & 5 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
]
},
"dependencies": {
"@docusaurus/core": "0.0.0-4591",
"@docusaurus/plugin-client-redirects": "0.0.0-4591",
"@docusaurus/plugin-pwa": "0.0.0-4591",
"@docusaurus/preset-classic": "0.0.0-4591",
"@docusaurus/remark-plugin-npm2yarn": "0.0.0-4591",
"@docusaurus/core": "^2.0.0-beta.17",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.17",
"@docusaurus/plugin-pwa": "^2.0.0-beta.17",
"@docusaurus/preset-classic": "^2.0.0-beta.17",
"@docusaurus/remark-plugin-npm2yarn": "^2.0.0-beta.17",
"clsx": "^1.1.1",
"globby": "^11.0.1",
"react": "^17.0.1",
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ _Note: CLI options take precedence over values from the [Configuration](Configur

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `jest` object is automatically in scope within every test file. The methods

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ _Note: CLI options take precedence over values from the [Configuration](Configur

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `jest` object is automatically in scope within every test file. The methods

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.0/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ _Note: CLI options take precedence over values from the [Configuration](Configur

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.0/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.0/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.0/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.0/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `jest` object is automatically in scope within every test file. The methods

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.0/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.1/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ _Note: CLI options take precedence over values from the [Configuration](Configur

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.1/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.1/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.1/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.1/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `jest` object is automatically in scope within every test file. The methods

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.1/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.2/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ _Note: CLI options take precedence over values from the [Configuration](Configur

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.2/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.2/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.2/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.2/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `jest` object is automatically in scope within every test file. The methods

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.2/MockFunctionAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc.slice(1)}/>
<TOCInline toc={toc.slice(1)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.4/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ _Note: CLI options take precedence over values from the [Configuration](Configur

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.4/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.4/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.4/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In your test files, Jest puts each of these methods and objects into the global

import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>
<TOCInline toc={toc.slice(2)} />

---

Expand Down
Loading

0 comments on commit 095f65e

Please sign in to comment.