From a2e49c8a390b2f582565444e92594952b985a589 Mon Sep 17 00:00:00 2001 From: jy95 Date: Sun, 17 Dec 2023 23:47:07 +0100 Subject: [PATCH 1/2] docs: use tabs to focus on what matter --- .../docs/demo-viewer/array/additionalItems1.mdx | 17 ++++++++++------- .../docs/demo-viewer/array/additionalItems2.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/array/contains.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/array/items.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/array/length.mdx | 17 ++++++++++------- .../array/minContainsAndMaxContains.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/array/simple.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/array/tuples.mdx | 17 ++++++++++------- .../demo-viewer/array/unevaluatedItems1.mdx | 17 ++++++++++------- .../demo-viewer/array/unevaluatedItems2.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/array/uniqueItems.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/boolean.mdx | 17 ++++++++++------- .../docs/demo-viewer/generic_keywords/const.mdx | 17 ++++++++++------- .../docs/demo-viewer/generic_keywords/enum.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/null.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/numeric/integer.mdx | 17 ++++++++++------- .../docs/demo-viewer/numeric/multipleOf.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/numeric/number.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/numeric/ranges.mdx | 17 ++++++++++------- .../demo-viewer/object/additionalProperties.mdx | 17 ++++++++++------- .../object/additionalProperties2.mdx | 17 ++++++++++------- ...dditionalPropertiesWithPatternProperties.mdx | 17 ++++++++++------- .../demo-viewer/object/patternProperties.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/object/properties.mdx | 17 ++++++++++------- .../docs/demo-viewer/object/propertyNames.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/object/required.mdx | 17 ++++++++++------- .../docs/demo-viewer/object/simpleObject.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/object/size.mdx | 17 ++++++++++------- .../object/unevaluatedProperties1.mdx | 17 ++++++++++------- .../object/unevaluatedProperties2.mdx | 17 ++++++++++------- .../demo-viewer/schema_composition/allOf.mdx | 17 ++++++++++------- .../demo-viewer/schema_composition/anyOf.mdx | 17 ++++++++++------- .../docs/demo-viewer/schema_composition/not.mdx | 17 ++++++++++------- .../demo-viewer/schema_composition/oneOf.mdx | 17 ++++++++++------- .../dependencies_dependentRequired.mdx | 17 ++++++++++------- .../dependencies_dependentSchemas.mdx | 17 ++++++++++------- .../schema_conditionally/dependentRequired.mdx | 17 ++++++++++------- .../dependentRequired_bidirectional.mdx | 17 ++++++++++------- .../schema_conditionally/dependentSchemas.mdx | 17 ++++++++++------- .../schema_conditionally/if-then-else.mdx | 17 ++++++++++------- .../if-then-else_multiple.mdx | 17 ++++++++++------- .../docs/demo-viewer/string/contentEncoding.mdx | 17 ++++++++++------- .../contentEncodingWithContentMediaType.mdx | 17 ++++++++++------- .../demo-viewer/string/contentMediaType.mdx | 17 ++++++++++------- .../docs/demo-viewer/string/contentSchema.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/string/format.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/string/length.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/string/pattern.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/string/simple.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/type/multipleType.mdx | 17 ++++++++++------- testsite/docs/demo-viewer/type/singleType.mdx | 17 ++++++++++------- 51 files changed, 510 insertions(+), 357 deletions(-) diff --git a/testsite/docs/demo-viewer/array/additionalItems1.mdx b/testsite/docs/demo-viewer/array/additionalItems1.mdx index 5eb11212..5b6c186c 100644 --- a/testsite/docs/demo-viewer/array/additionalItems1.mdx +++ b/testsite/docs/demo-viewer/array/additionalItems1.mdx @@ -6,13 +6,16 @@ title: ❌ AdditionalItems (1) import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/additionalItems1.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # AdditionalItems (1) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/additionalItems2.mdx b/testsite/docs/demo-viewer/array/additionalItems2.mdx index c221792d..40491d01 100644 --- a/testsite/docs/demo-viewer/array/additionalItems2.mdx +++ b/testsite/docs/demo-viewer/array/additionalItems2.mdx @@ -6,13 +6,16 @@ title: ➕ AdditionalItems (2) import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/additionalItems2.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # AdditionalItems (2) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/contains.mdx b/testsite/docs/demo-viewer/array/contains.mdx index d8b40e55..3abcf483 100644 --- a/testsite/docs/demo-viewer/array/contains.mdx +++ b/testsite/docs/demo-viewer/array/contains.mdx @@ -6,13 +6,16 @@ title: 🍱 Contains import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/contains.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Contains -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/items.mdx b/testsite/docs/demo-viewer/array/items.mdx index fcfcd36d..a5594e53 100644 --- a/testsite/docs/demo-viewer/array/items.mdx +++ b/testsite/docs/demo-viewer/array/items.mdx @@ -6,13 +6,16 @@ title: 🛍️ Items import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/items.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Items -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/length.mdx b/testsite/docs/demo-viewer/array/length.mdx index 52c1ffe2..95c6a886 100644 --- a/testsite/docs/demo-viewer/array/length.mdx +++ b/testsite/docs/demo-viewer/array/length.mdx @@ -6,13 +6,16 @@ title: 📐 Length import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/length.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Length -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/minContainsAndMaxContains.mdx b/testsite/docs/demo-viewer/array/minContainsAndMaxContains.mdx index 5a55208a..80f72d94 100644 --- a/testsite/docs/demo-viewer/array/minContainsAndMaxContains.mdx +++ b/testsite/docs/demo-viewer/array/minContainsAndMaxContains.mdx @@ -6,13 +6,16 @@ title: "📊 minContains & maxContains" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/minContainsAndMaxContains.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # minContains & maxContains -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/simple.mdx b/testsite/docs/demo-viewer/array/simple.mdx index 32dc9ac2..07054e76 100644 --- a/testsite/docs/demo-viewer/array/simple.mdx +++ b/testsite/docs/demo-viewer/array/simple.mdx @@ -6,13 +6,16 @@ title: "🟦 Simple" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/simple.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Simple -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/tuples.mdx b/testsite/docs/demo-viewer/array/tuples.mdx index 314f60db..b93d1837 100644 --- a/testsite/docs/demo-viewer/array/tuples.mdx +++ b/testsite/docs/demo-viewer/array/tuples.mdx @@ -6,13 +6,16 @@ title: "📋 Tuples" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/tuples.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Tuples -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/unevaluatedItems1.mdx b/testsite/docs/demo-viewer/array/unevaluatedItems1.mdx index 5ffa3772..1837c74d 100644 --- a/testsite/docs/demo-viewer/array/unevaluatedItems1.mdx +++ b/testsite/docs/demo-viewer/array/unevaluatedItems1.mdx @@ -6,13 +6,16 @@ title: 🤔 UnevaluatedItems (1) import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/unevaluatedItems1.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # UnevaluatedItems (1) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/unevaluatedItems2.mdx b/testsite/docs/demo-viewer/array/unevaluatedItems2.mdx index 8154890e..2b554360 100644 --- a/testsite/docs/demo-viewer/array/unevaluatedItems2.mdx +++ b/testsite/docs/demo-viewer/array/unevaluatedItems2.mdx @@ -6,13 +6,16 @@ title: 📋 UnevaluatedItems (2) import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/unevaluatedItems2.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # UnevaluatedItems (2) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/array/uniqueItems.mdx b/testsite/docs/demo-viewer/array/uniqueItems.mdx index 55ee36dd..ab5ca21c 100644 --- a/testsite/docs/demo-viewer/array/uniqueItems.mdx +++ b/testsite/docs/demo-viewer/array/uniqueItems.mdx @@ -6,13 +6,16 @@ title: "🦄 Unique items" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/array/uniqueItems.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Unique items -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/boolean.mdx b/testsite/docs/demo-viewer/boolean.mdx index 0732beb1..ae0f9577 100644 --- a/testsite/docs/demo-viewer/boolean.mdx +++ b/testsite/docs/demo-viewer/boolean.mdx @@ -6,13 +6,16 @@ title: "✅ Boolean" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/boolean/simple.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Boolean -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/generic_keywords/const.mdx b/testsite/docs/demo-viewer/generic_keywords/const.mdx index ab8c3917..30989ee8 100644 --- a/testsite/docs/demo-viewer/generic_keywords/const.mdx +++ b/testsite/docs/demo-viewer/generic_keywords/const.mdx @@ -6,13 +6,16 @@ title: "🧊 Const" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/generic_keywords/const.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Const -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/generic_keywords/enum.mdx b/testsite/docs/demo-viewer/generic_keywords/enum.mdx index 0cfa1b73..c3865d27 100644 --- a/testsite/docs/demo-viewer/generic_keywords/enum.mdx +++ b/testsite/docs/demo-viewer/generic_keywords/enum.mdx @@ -6,13 +6,16 @@ title: "🔒 Enum" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/generic_keywords/enum.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Enum -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/null.mdx b/testsite/docs/demo-viewer/null.mdx index 78fbc5e6..7bc19ef8 100644 --- a/testsite/docs/demo-viewer/null.mdx +++ b/testsite/docs/demo-viewer/null.mdx @@ -6,13 +6,16 @@ title: "🕳️ Null" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/null/simple.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Null -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/numeric/integer.mdx b/testsite/docs/demo-viewer/numeric/integer.mdx index 5b2cda02..b3060835 100644 --- a/testsite/docs/demo-viewer/numeric/integer.mdx +++ b/testsite/docs/demo-viewer/numeric/integer.mdx @@ -6,13 +6,16 @@ title: "1️⃣ Integer" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/numeric/integer.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Integer -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/numeric/multipleOf.mdx b/testsite/docs/demo-viewer/numeric/multipleOf.mdx index 976ae8cd..3d2b9244 100644 --- a/testsite/docs/demo-viewer/numeric/multipleOf.mdx +++ b/testsite/docs/demo-viewer/numeric/multipleOf.mdx @@ -6,13 +6,16 @@ title: "✖️ Multiple Of" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/numeric/multipleOf.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Multiple Of -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/numeric/number.mdx b/testsite/docs/demo-viewer/numeric/number.mdx index b37e98c5..5d0d5b90 100644 --- a/testsite/docs/demo-viewer/numeric/number.mdx +++ b/testsite/docs/demo-viewer/numeric/number.mdx @@ -6,13 +6,16 @@ title: "🔢 Number" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/numeric/number.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Number -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/numeric/ranges.mdx b/testsite/docs/demo-viewer/numeric/ranges.mdx index f9f14116..7149f42e 100644 --- a/testsite/docs/demo-viewer/numeric/ranges.mdx +++ b/testsite/docs/demo-viewer/numeric/ranges.mdx @@ -6,13 +6,16 @@ title: "🌡️ Ranges" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/numeric/ranges.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Ranges -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/additionalProperties.mdx b/testsite/docs/demo-viewer/object/additionalProperties.mdx index 7264ad15..954ff8de 100644 --- a/testsite/docs/demo-viewer/object/additionalProperties.mdx +++ b/testsite/docs/demo-viewer/object/additionalProperties.mdx @@ -6,13 +6,16 @@ title: "🗝️ AdditionalProperties (1)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/additionalProperties.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # AdditionalProperties (1) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/additionalProperties2.mdx b/testsite/docs/demo-viewer/object/additionalProperties2.mdx index 268ea8e1..afdef09b 100644 --- a/testsite/docs/demo-viewer/object/additionalProperties2.mdx +++ b/testsite/docs/demo-viewer/object/additionalProperties2.mdx @@ -6,13 +6,16 @@ title: "🛠️ AdditionalProperties (2)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/additionalProperties2.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # AdditionalProperties (2) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/additionalPropertiesWithPatternProperties.mdx b/testsite/docs/demo-viewer/object/additionalPropertiesWithPatternProperties.mdx index 0fa15ecb..e4556a24 100644 --- a/testsite/docs/demo-viewer/object/additionalPropertiesWithPatternProperties.mdx +++ b/testsite/docs/demo-viewer/object/additionalPropertiesWithPatternProperties.mdx @@ -6,13 +6,16 @@ title: "🌈 AdditionalProperties with patternProperties" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/additionalPropertiesWithPatternProperties.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # AdditionalProperties with patternProperties -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/patternProperties.mdx b/testsite/docs/demo-viewer/object/patternProperties.mdx index 32557cc3..246adf2e 100644 --- a/testsite/docs/demo-viewer/object/patternProperties.mdx +++ b/testsite/docs/demo-viewer/object/patternProperties.mdx @@ -6,13 +6,16 @@ title: "🎨 PatternProperties" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/patternProperties.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # PatternProperties -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/properties.mdx b/testsite/docs/demo-viewer/object/properties.mdx index 9e062273..19053653 100644 --- a/testsite/docs/demo-viewer/object/properties.mdx +++ b/testsite/docs/demo-viewer/object/properties.mdx @@ -6,13 +6,16 @@ title: "📝 Properties" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/properties.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Properties -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/propertyNames.mdx b/testsite/docs/demo-viewer/object/propertyNames.mdx index 61dbf8f7..27906212 100644 --- a/testsite/docs/demo-viewer/object/propertyNames.mdx +++ b/testsite/docs/demo-viewer/object/propertyNames.mdx @@ -6,13 +6,16 @@ title: "🏷️ PropertyNames" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/propertyNames.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # PropertyNames -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/required.mdx b/testsite/docs/demo-viewer/object/required.mdx index 5dc4bcf7..356f644a 100644 --- a/testsite/docs/demo-viewer/object/required.mdx +++ b/testsite/docs/demo-viewer/object/required.mdx @@ -6,13 +6,16 @@ title: "🔴 Required" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/required.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Required -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/simpleObject.mdx b/testsite/docs/demo-viewer/object/simpleObject.mdx index 78acaf5b..98832e5a 100644 --- a/testsite/docs/demo-viewer/object/simpleObject.mdx +++ b/testsite/docs/demo-viewer/object/simpleObject.mdx @@ -6,13 +6,16 @@ title: "🟦 Simple" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/simpleObject.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Simple -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/size.mdx b/testsite/docs/demo-viewer/object/size.mdx index 5e5e607b..f2a9e50c 100644 --- a/testsite/docs/demo-viewer/object/size.mdx +++ b/testsite/docs/demo-viewer/object/size.mdx @@ -6,13 +6,16 @@ title: "📏 Size" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/size.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Size -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/unevaluatedProperties1.mdx b/testsite/docs/demo-viewer/object/unevaluatedProperties1.mdx index 9f6068f8..8fb0dddf 100644 --- a/testsite/docs/demo-viewer/object/unevaluatedProperties1.mdx +++ b/testsite/docs/demo-viewer/object/unevaluatedProperties1.mdx @@ -6,13 +6,16 @@ title: "🧐 UnevaluatedProperties (1)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/unevaluatedProperties1.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # UnevaluatedProperties (1) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/object/unevaluatedProperties2.mdx b/testsite/docs/demo-viewer/object/unevaluatedProperties2.mdx index 9327bb25..1827627b 100644 --- a/testsite/docs/demo-viewer/object/unevaluatedProperties2.mdx +++ b/testsite/docs/demo-viewer/object/unevaluatedProperties2.mdx @@ -6,13 +6,16 @@ title: "🕵️‍♀️ UnevaluatedProperties (2)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/object/unevaluatedProperties2.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # UnevaluatedProperties (2) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_composition/allOf.mdx b/testsite/docs/demo-viewer/schema_composition/allOf.mdx index 15c6d22d..60c9677b 100644 --- a/testsite/docs/demo-viewer/schema_composition/allOf.mdx +++ b/testsite/docs/demo-viewer/schema_composition/allOf.mdx @@ -6,13 +6,16 @@ title: "🤝 allOf" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_composition/allOf.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # allOf -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_composition/anyOf.mdx b/testsite/docs/demo-viewer/schema_composition/anyOf.mdx index cf8f18de..cf501ac7 100644 --- a/testsite/docs/demo-viewer/schema_composition/anyOf.mdx +++ b/testsite/docs/demo-viewer/schema_composition/anyOf.mdx @@ -6,13 +6,16 @@ title: "🌐 anyOf" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_composition/anyOf.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # anyOf -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_composition/not.mdx b/testsite/docs/demo-viewer/schema_composition/not.mdx index 86a3de5f..496ebcb0 100644 --- a/testsite/docs/demo-viewer/schema_composition/not.mdx +++ b/testsite/docs/demo-viewer/schema_composition/not.mdx @@ -6,13 +6,16 @@ title: "🚫 not" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_composition/not.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # not -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_composition/oneOf.mdx b/testsite/docs/demo-viewer/schema_composition/oneOf.mdx index 01f89fa4..5592a2ad 100644 --- a/testsite/docs/demo-viewer/schema_composition/oneOf.mdx +++ b/testsite/docs/demo-viewer/schema_composition/oneOf.mdx @@ -6,13 +6,16 @@ title: "🎯 oneOf" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_composition/oneOf.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # oneOf -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentRequired.mdx b/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentRequired.mdx index 870046bf..1e134ba3 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentRequired.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentRequired.mdx @@ -6,13 +6,16 @@ title: "🤞 dependencies (dependentRequired)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/dependencies_dependentRequired.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # dependencies (dependentRequired) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentSchemas.mdx b/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentSchemas.mdx index 08af3d38..b57cbf98 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentSchemas.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/dependencies_dependentSchemas.mdx @@ -6,13 +6,16 @@ title: "🌳 dependencies (dependentSchemas)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/dependencies_dependentSchemas.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # dependencies (dependentSchemas) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/dependentRequired.mdx b/testsite/docs/demo-viewer/schema_conditionally/dependentRequired.mdx index 2a38b431..efa68edd 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/dependentRequired.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/dependentRequired.mdx @@ -6,13 +6,16 @@ title: "🔑 dependentRequired" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/dependentRequired.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # dependentRequired -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/dependentRequired_bidirectional.mdx b/testsite/docs/demo-viewer/schema_conditionally/dependentRequired_bidirectional.mdx index 8db33c79..ede4ace3 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/dependentRequired_bidirectional.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/dependentRequired_bidirectional.mdx @@ -6,13 +6,16 @@ title: "🔁 dependentRequired (bidirectional)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/dependentRequired_bidirectional.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # dependentRequired (bidirectional) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/dependentSchemas.mdx b/testsite/docs/demo-viewer/schema_conditionally/dependentSchemas.mdx index fb09e5a4..148e1ed7 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/dependentSchemas.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/dependentSchemas.mdx @@ -6,13 +6,16 @@ title: "🏗️ dependentSchemas" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/dependentSchemas.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # dependentSchemas -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/if-then-else.mdx b/testsite/docs/demo-viewer/schema_conditionally/if-then-else.mdx index d3f09e2f..ab58e0b1 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/if-then-else.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/if-then-else.mdx @@ -6,13 +6,16 @@ title: "🎬 If-Then-Else" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/if-then-else.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # If-Then-Else -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/schema_conditionally/if-then-else_multiple.mdx b/testsite/docs/demo-viewer/schema_conditionally/if-then-else_multiple.mdx index 36d64bea..f6543e10 100644 --- a/testsite/docs/demo-viewer/schema_conditionally/if-then-else_multiple.mdx +++ b/testsite/docs/demo-viewer/schema_conditionally/if-then-else_multiple.mdx @@ -6,13 +6,16 @@ title: "🔀 If-Then-Else (multiple)" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/schema_conditionally/if-then-else_multiple.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # If-Then-Else (multiple) -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/contentEncoding.mdx b/testsite/docs/demo-viewer/string/contentEncoding.mdx index c60cb5a9..d6336d47 100644 --- a/testsite/docs/demo-viewer/string/contentEncoding.mdx +++ b/testsite/docs/demo-viewer/string/contentEncoding.mdx @@ -6,13 +6,16 @@ title: "📜 ContentEncoding" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/contentEncoding.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # ContentEncoding -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/contentEncodingWithContentMediaType.mdx b/testsite/docs/demo-viewer/string/contentEncodingWithContentMediaType.mdx index 38c14d8f..5d10c244 100644 --- a/testsite/docs/demo-viewer/string/contentEncodingWithContentMediaType.mdx +++ b/testsite/docs/demo-viewer/string/contentEncodingWithContentMediaType.mdx @@ -6,13 +6,16 @@ title: "📄 ContentEncoding & ContentMediaType" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/contentEncodingWithContentMediaType.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # ContentEncoding & ContentMediaType -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/contentMediaType.mdx b/testsite/docs/demo-viewer/string/contentMediaType.mdx index 792d3485..dfd427e9 100644 --- a/testsite/docs/demo-viewer/string/contentMediaType.mdx +++ b/testsite/docs/demo-viewer/string/contentMediaType.mdx @@ -6,13 +6,16 @@ title: "🔖 ContentMediaType" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/contentMediaType.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # ContentMediaType -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/contentSchema.mdx b/testsite/docs/demo-viewer/string/contentSchema.mdx index ed09c422..f5478366 100644 --- a/testsite/docs/demo-viewer/string/contentSchema.mdx +++ b/testsite/docs/demo-viewer/string/contentSchema.mdx @@ -6,13 +6,16 @@ title: "📑 ContentSchema" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/contentSchema.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # ContentSchema -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/format.mdx b/testsite/docs/demo-viewer/string/format.mdx index 73dacdbb..40874b22 100644 --- a/testsite/docs/demo-viewer/string/format.mdx +++ b/testsite/docs/demo-viewer/string/format.mdx @@ -6,13 +6,16 @@ title: "📅 Format" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/format.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Format -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/length.mdx b/testsite/docs/demo-viewer/string/length.mdx index b4623b7d..c6b48249 100644 --- a/testsite/docs/demo-viewer/string/length.mdx +++ b/testsite/docs/demo-viewer/string/length.mdx @@ -6,13 +6,16 @@ title: "📏 Length" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/length.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Length -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/pattern.mdx b/testsite/docs/demo-viewer/string/pattern.mdx index 1727b269..575492c2 100644 --- a/testsite/docs/demo-viewer/string/pattern.mdx +++ b/testsite/docs/demo-viewer/string/pattern.mdx @@ -6,13 +6,16 @@ title: "🔮 Pattern" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/pattern.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Pattern -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/string/simple.mdx b/testsite/docs/demo-viewer/string/simple.mdx index c4204c5d..079998ea 100644 --- a/testsite/docs/demo-viewer/string/simple.mdx +++ b/testsite/docs/demo-viewer/string/simple.mdx @@ -6,13 +6,16 @@ title: "🟦 Basic" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/string/basic.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Basic -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/type/multipleType.mdx b/testsite/docs/demo-viewer/type/multipleType.mdx index ffb75426..4dded91f 100644 --- a/testsite/docs/demo-viewer/type/multipleType.mdx +++ b/testsite/docs/demo-viewer/type/multipleType.mdx @@ -6,13 +6,16 @@ title: "🐾 Multiple types" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/type/multipleType.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Multiple types -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file diff --git a/testsite/docs/demo-viewer/type/singleType.mdx b/testsite/docs/demo-viewer/type/singleType.mdx index 50c8be12..0a27f1d3 100644 --- a/testsite/docs/demo-viewer/type/singleType.mdx +++ b/testsite/docs/demo-viewer/type/singleType.mdx @@ -6,13 +6,16 @@ title: "🌟 Single type" import CodeBlock from '@theme/CodeBlock'; import Schema from "@site/static/schemas/examples/type/singleType.json"; import JSONSchemaViewer from "@theme/JSONSchemaViewer"; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Single type -JSON Schema : - -{JSON.stringify(Schema, null, 2)} - -Viewer : - - \ No newline at end of file + + + + + + {JSON.stringify(Schema, null, 2)} + + \ No newline at end of file From a551057441de68ce4d409c3948f6fe0670425a15 Mon Sep 17 00:00:00 2001 From: jy95 Date: Sun, 17 Dec 2023 23:56:34 +0100 Subject: [PATCH 2/2] docs: use tabs to focus on what matter --- .../generic_keywords/annotations.mdx | 46 ++++++++++--------- testsite/docs/demo-viewer/refs/localFile.mdx | 27 ++++++----- testsite/docs/demo-viewer/refs/ref.mdx | 24 +++++----- testsite/docs/demo-viewer/refs/remoteFile.mdx | 24 +++++----- 4 files changed, 66 insertions(+), 55 deletions(-) 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