diff --git a/testsite/docs/demo-viewer/generic_keywords/annotations.mdx b/testsite/docs/demo-viewer/generic_keywords/annotations.mdx index b796dd3d..931c0784 100644 --- a/testsite/docs/demo-viewer/generic_keywords/annotations.mdx +++ b/testsite/docs/demo-viewer/generic_keywords/annotations.mdx @@ -7,28 +7,30 @@ import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/generic_keywords/annotations.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; import ReactMarkdown from 'react-markdown' +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Annotations -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -viewerOptions : - -```js -{ - showExamples: true, - DescriptionComponent: ({description}) => -} -``` - -Viewer : - - - }} -/> \ No newline at end of file + + + + }} + /> + + + ```js + { + showExamples: true, + DescriptionComponent: ({description}) => + } + ``` + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/refs/localFile.mdx b/testsite/docs/demo-viewer/refs/localFile.mdx index 10380bb2..a1e2ca94 100644 --- a/testsite/docs/demo-viewer/refs/localFile.mdx +++ b/testsite/docs/demo-viewer/refs/localFile.mdx @@ -8,17 +8,22 @@ import Schema from "@site/static/schemas/examples/refs/localFile.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; import generateResolverOptions from "@site/src/components/shared-libs/generateResolverOptions" import StringifyObject from "@site/src/components/shared-libs/stringifyObject" +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # $ref (as local file) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -resolverOptions : - -{`${StringifyObject(generateResolverOptions({"basePath": "/schemas/examples/refs"}))}`} - -Viewer : - - \ No newline at end of file + + + + + + {`${StringifyObject(generateResolverOptions({"basePath": "/schemas/examples/refs"}))}`} + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/refs/ref.mdx b/testsite/docs/demo-viewer/refs/ref.mdx index 4a4cd4f1..0026bfe5 100644 --- a/testsite/docs/demo-viewer/refs/ref.mdx +++ b/testsite/docs/demo-viewer/refs/ref.mdx @@ -7,17 +7,19 @@ import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/refs/refOnRoot.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; export const resolverOptions = {"jsonPointer": "#/definitions/user"} +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # $ref -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -resolverOptions : - -{JSON.stringify(resolverOptions, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(resolverOptions, null, 2)} + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/refs/remoteFile.mdx b/testsite/docs/demo-viewer/refs/remoteFile.mdx index 50384005..998f385a 100644 --- a/testsite/docs/demo-viewer/refs/remoteFile.mdx +++ b/testsite/docs/demo-viewer/refs/remoteFile.mdx @@ -8,17 +8,19 @@ import Schema from "@site/static/schemas/examples/refs/remoteRef.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; import generateResolverOptions from "@site/src/components/shared-libs/generateResolverOptions" import StringifyObject from "@site/src/components/shared-libs/stringifyObject" +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # $ref (as local file) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -resolverOptions : - -{`${StringifyObject(generateResolverOptions({"remote": true}))}`} - -Viewer : - - \ No newline at end of file + + + + + + {`${StringifyObject(generateResolverOptions({"remote": true}))}`} + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file