Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade docusaurus v3.5 #150

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update monaco and bootstrap dependencies
arielmirra committed Sep 24, 2024

Verified

This commit was signed with the committer’s verified signature.
arielmirra Ariel Mirra
commit 1e9c2f16280405902dbdfe322fc3210a89ac34f3
84 changes: 39 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
"@docusaurus/theme-classic": "3.5.2",
"@mdx-js/react": "3.0.1",
"@monaco-editor/react": "^4.6.0",
"bootstrap": "4.6.1",
"bootstrap": "5.3.3",
"classnames": "^2.2.6",
"clsx": "^1.2.1",
"docusaurus-gtm-plugin": "0.0.2",
@@ -52,7 +52,7 @@
]
},
"devDependencies": {
"sass": "^1.35.1",
"sass": "1.79.3",
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/types": "3.5.2"
}
12 changes: 7 additions & 5 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import Helmet from "react-helmet";
import Editor, {monaco} from '@monaco-editor/react';
import Editor, {Monaco} from '@monaco-editor/react';

const PLAYGROUND_URL = 'https://a.ml/playground/validation.html'

function initMonaco() {
function initMonaco(monaco) {
monaco
.init()
.then(monaco => {
@@ -135,8 +135,8 @@ function initMonaco() {
.catch(error => console.error('An error occurred during initialization of Monaco: ', error));
}

function handleEditorDidMount(_, editor) {
initMonaco()
function handleEditorDidMount(editor, monaco) {
initMonaco(monaco)
}

const editorOptions = {
@@ -155,7 +155,7 @@ const editorOptions = {
},
tabSize: 2,
fontFamily: 'Roboto Mono',
fontWeight: 500
fontWeight: "500"
}

const editorStyle = {width: "100%", height: "519px", float: "left"}
@@ -440,6 +440,7 @@ const Editors = () =>
<div id="dialect-container" style={editorStyle}>
<Editor
value={dialectCode}
defaultLanguage="yaml"
options={editorOptions}
editorDidMount={handleEditorDidMount}
/>
@@ -452,6 +453,7 @@ const Editors = () =>
<div id="document-container" style={editorStyle}>
<Editor
value={documentCode}
defaultLanguage="yaml"
options={editorOptions}
editorDidMount={handleEditorDidMount}
/>