Update Docusaurus (#797)

This commit is contained in:
Shayne Czyzewski 2022-11-07 13:04:15 -05:00 committed by GitHub
parent 3df81266fe
commit edc0581342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7816 additions and 12792 deletions

View File

@ -114,10 +114,6 @@ module.exports = {
// it searches only in v1 docs if you are searching from v1 docs. // it searches only in v1 docs if you are searching from v1 docs.
// We should enable it if we start doing versioning. // We should enable it if we start doing versioning.
// contextualSearch: true // contextualSearch: true
},
gtag: {
trackingID: 'G-3ZEDH3BVGE',
anonymizeIP: true,
} }
}, },
presets: [ presets: [

20571
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,22 +14,23 @@
"write-heading-ids": "docusaurus write-heading-ids" "write-heading-ids": "docusaurus write-heading-ids"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "2.0.0-beta.6", "@docusaurus/core": "2.2.0",
"@docusaurus/plugin-google-gtag": "^2.0.0-beta.6", "@docusaurus/preset-classic": "2.2.0",
"@docusaurus/preset-classic": "2.0.0-beta.6", "@docusaurus/plugin-google-gtag": "2.2.0",
"@mdx-js/react": "^1.6.21", "@mdx-js/react": "^1.6.22",
"@svgr/webpack": "^5.5.0", "@svgr/webpack": "^6.5.1",
"clsx": "^1.1.1", "clsx": "^1.2.1",
"file-loader": "^6.2.0", "prism-react-renderer": "^1.3.5",
"prism-react-renderer": "^1.2.1", "react": "^17.0.2",
"react": "^17.0.1", "react-dom": "^17.0.2",
"react-dom": "^17.0.1", "react-modal": "^3.14.3"
"react-modal": "^3.14.3", },
"url-loader": "^4.1.1" "devDependencies": {
"@docusaurus/module-type-aliases": "2.2.0"
}, },
"engines": { "engines": {
"node": "16", "node": "^18.12.0",
"npm": "8" "npm": "^8.19.2"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

View File

@ -1,12 +1,12 @@
import React, { useState } from 'react' import React, { useState } from 'react'
import CodeBlock from '@theme/CodeBlock' import CodeBlock from '@theme/CodeBlock'
export default function CodeBlockWithTitle ({ title, children, language, metastring }) { export default function CodeBlockWithTitle ({ title, children, language }) {
return ( return (
<div className='code-with-header'> <div className='code-with-header'>
<div className="code-header">{ title }</div> <div className="code-header">{ title }</div>
<CodeBlock className={language} metastring={metastring}> <CodeBlock language={language}>
{ children } { children }
</CodeBlock> </CodeBlock>
</div> </div>