Skip to content

Commit c2b6228

Browse files
committed
Merge branch 'main' into multiline-examples
2 parents e36cde4 + 54356c5 commit c2b6228

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+680
-417
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
npm run test:coverage
2424
- name: Run codacy-coverage-reporter
2525
uses: codacy/[email protected]
26+
if: "! github.event.pull_request.head.repo.fork "
2627
with:
2728
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
2829
coverage-reports: 'coverage/lcov.info'

testsite/docs/demo-viewer/array/additionalItems1.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: ❌ AdditionalItems (1)
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/additionalItems1.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# AdditionalItems (1)
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/additionalItems2.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: ➕ AdditionalItems (2)
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/additionalItems2.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# AdditionalItems (2)
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/contains.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: 🍱 Contains
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/contains.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# Contains
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/items.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: 🛍️ Items
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/items.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# Items
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/length.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: 📐 Length
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/length.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# Length
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/minContainsAndMaxContains.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: "📊 minContains & maxContains"
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/minContainsAndMaxContains.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# minContains & maxContains
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/simple.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: "🟦 Simple"
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/simple.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# Simple
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/tuples.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: "📋 Tuples"
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/tuples.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# Tuples
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

testsite/docs/demo-viewer/array/unevaluatedItems1.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ title: 🤔 UnevaluatedItems (1)
66
import CodeBlock from '@theme/CodeBlock';
77
import Schema from "@site/static/schemas/examples/array/unevaluatedItems1.json";
88
import JSONSchemaViewer from "@theme/JSONSchemaViewer";
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# UnevaluatedItems (1)
1113

12-
JSON Schema :
13-
14-
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
15-
16-
Viewer :
17-
18-
<JSONSchemaViewer schema={ Schema } />
14+
<Tabs>
15+
<TabItem value="Viewer" label="Viewer" default>
16+
<JSONSchemaViewer schema={Schema} />
17+
</TabItem>
18+
<TabItem value="JSON Schema" label='JSON Schema'>
19+
<CodeBlock language="json">{JSON.stringify(Schema, null, 2)}</CodeBlock>
20+
</TabItem>
21+
</Tabs>

0 commit comments

Comments
 (0)