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 -- to stg #151

Merged
merged 6 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#GUSINFO:MS AMF,MS AMF Service
* @mulesoft/team-amf

2 changes: 1 addition & 1 deletion docs/amf/using-amf/semantic_extensions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sidebar_position: 9
"Semantic Extensions" is a mechanism to extend the semantic domain of an API specification like [RAML](https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#annotations)
or [OpenApi](https://swagger.io/docs/specification/openapi-extensions/).

We use [AML](/docs/aml/aml) to define mappings that will be describe the AST structure used to parse the nodes that extend the domain of the source specification. Also, it allows map
We use [AML](/docs/aml/aml) to define mappings that will describe the AST structure used to parse the nodes that extend the domain of the source specification. Also, it allows map
the AST structure to *semantic terms*.

We identify such nodes or extension points by using *annotations* (also called *spec extensions*).
Expand Down
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
tagline: 'Standards and tools to define, parse and link metadata',
url: 'https://aml-org.github.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logos/amlLogo.svg',
organizationName: 'aml-org',
Expand Down Expand Up @@ -33,8 +33,8 @@ module.exports = {
prism: {
additionalLanguages: ['java', 'scala'],
defaultLanguage: 'java',
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
theme: require('prism-react-renderer').themes.github,
darkTheme: require('prism-react-renderer').themes.dracula,
},
navbar: {
title: '',
Expand Down
24,125 changes: 13,882 additions & 10,243 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@
"build-and-serve": "npm install && npm run build && npm run serve"
},
"dependencies": {
"@docusaurus/core": "2.3.1",
"@docusaurus/preset-classic": "2.3.1",
"@mdx-js/react": "^1.6.22",
"@monaco-editor/react": "^3.8.3",
"bootstrap": "4.6.1",
"@docusaurus/core": "3.5.2",
"@docusaurus/plugin-content-blog": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@docusaurus/theme-classic": "3.5.2",
"@mdx-js/react": "3.0.1",
"@monaco-editor/react": "^4.6.0",
"bootstrap": "5.3.3",
"classnames": "^2.2.6",
"clsx": "^1.2.1",
"docusaurus-gtm-plugin": "0.0.2",
"docusaurus-plugin-sass": "0.2.3",
"prism-react-renderer": "1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"docusaurus-plugin-sass": "0.2.5",
"prism-react-renderer": "2.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0"
},
"browserslist": {
Expand All @@ -50,6 +52,8 @@
]
},
"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 => {
Expand Down Expand Up @@ -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 = {
Expand All @@ -155,7 +155,7 @@ const editorOptions = {
},
tabSize: 2,
fontFamily: 'Roboto Mono',
fontWeight: 500
fontWeight: "500"
}

const editorStyle = {width: "100%", height: "519px", float: "left"}
Expand Down Expand Up @@ -440,6 +440,7 @@ const Editors = () =>
<div id="dialect-container" style={editorStyle}>
<Editor
value={dialectCode}
defaultLanguage="yaml"
options={editorOptions}
editorDidMount={handleEditorDidMount}
/>
Expand All @@ -452,6 +453,7 @@ const Editors = () =>
<div id="document-container" style={editorStyle}>
<Editor
value={documentCode}
defaultLanguage="yaml"
options={editorOptions}
editorDidMount={handleEditorDidMount}
/>
Expand Down
2 changes: 1 addition & 1 deletion versioned_sidebars/version-4.x.x-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version-4.x.x/myAutogeneratedSidebar": [
"myAutogeneratedSidebar": [
{
"type": "autogenerated",
"dirName": "."
Expand Down
Loading