mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-09-20 03:57:54 +03:00
Update Docusaurus (#797)
This commit is contained in:
parent
3df81266fe
commit
edc0581342
@ -114,10 +114,6 @@ module.exports = {
|
||||
// it searches only in v1 docs if you are searching from v1 docs.
|
||||
// We should enable it if we start doing versioning.
|
||||
// contextualSearch: true
|
||||
},
|
||||
gtag: {
|
||||
trackingID: 'G-3ZEDH3BVGE',
|
||||
anonymizeIP: true,
|
||||
}
|
||||
},
|
||||
presets: [
|
||||
|
20571
web/package-lock.json
generated
20571
web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,22 +14,23 @@
|
||||
"write-heading-ids": "docusaurus write-heading-ids"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "2.0.0-beta.6",
|
||||
"@docusaurus/plugin-google-gtag": "^2.0.0-beta.6",
|
||||
"@docusaurus/preset-classic": "2.0.0-beta.6",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"@svgr/webpack": "^5.5.0",
|
||||
"clsx": "^1.1.1",
|
||||
"file-loader": "^6.2.0",
|
||||
"prism-react-renderer": "^1.2.1",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"react-modal": "^3.14.3",
|
||||
"url-loader": "^4.1.1"
|
||||
"@docusaurus/core": "2.2.0",
|
||||
"@docusaurus/preset-classic": "2.2.0",
|
||||
"@docusaurus/plugin-google-gtag": "2.2.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"@svgr/webpack": "^6.5.1",
|
||||
"clsx": "^1.2.1",
|
||||
"prism-react-renderer": "^1.3.5",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-modal": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "2.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16",
|
||||
"npm": "8"
|
||||
"node": "^18.12.0",
|
||||
"npm": "^8.19.2"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
@ -1,12 +1,12 @@
|
||||
import React, { useState } from 'react'
|
||||
import CodeBlock from '@theme/CodeBlock'
|
||||
|
||||
export default function CodeBlockWithTitle ({ title, children, language, metastring }) {
|
||||
export default function CodeBlockWithTitle ({ title, children, language }) {
|
||||
return (
|
||||
<div className='code-with-header'>
|
||||
<div className="code-header">{ title }</div>
|
||||
|
||||
<CodeBlock className={language} metastring={metastring}>
|
||||
<CodeBlock language={language}>
|
||||
{ children }
|
||||
</CodeBlock>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user