Skip to content

Commit

Permalink
Modified spec page
Browse files Browse the repository at this point in the history
  • Loading branch information
kwennB committed Jul 25, 2024
1 parent 5f86cf3 commit b1fc371
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 94 deletions.
22 changes: 4 additions & 18 deletions components/DocTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DocTable = ({ frontmatter }: any) => {
<table className='table-auto border-collapse w-full bg-slate-200 dark:bg-slate-900 text-slate-700 dark:text-slate-300'>
<tbody>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Specification
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
Expand All @@ -23,15 +23,15 @@ const DocTable = ({ frontmatter }: any) => {
</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Published
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
{frontmatter.Published}
</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 '>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Authors
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
Expand All @@ -41,7 +41,7 @@ const DocTable = ({ frontmatter }: any) => {
</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Metaschema
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2 '>
Expand All @@ -54,20 +54,6 @@ const DocTable = ({ frontmatter }: any) => {
</Link>
</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 '>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center'>
Implementations
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
<Link
href={frontmatter.Implementations}
className='text-linkBlue'
target='_blank'
>
{frontmatter.Implementations}
</Link>
</td>
</tr>
</tbody>
</table>
</div>
Expand Down
15 changes: 8 additions & 7 deletions components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,15 @@ const getReferencePath = [
'/implementers/interfaces',
];
const getSpecificationPath = [
'/draft/2020-12/release-notes',
'/draft/2019-09/release-notes',
'/draft-07/json-schema-release-notes',
'/draft-06/json-schema-release-notes',
'/draft-05/readme',
'/draft-07/json-hyper-schema-release-notes',
'/draft-06/json-hyper-schema-release-notes',
'/draft/2020-12/',
'/draft/2019-09/',
'/draft-07/',
'/draft-06/',
'/draft-05/',
'/specification-links',
'/migration',
'/release-notes',
'/json-hyper-schema',
'/specification',
];

Expand Down
4 changes: 1 addition & 3 deletions pages/draft-05/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ Published: '21-April-2017'
type: docs
authors: ['Austin Wright', 'Henry Andrews', 'Ben Hutton', 'Greg Dennis']
Metaschema: 'https://json-schema.org/draft/2020-12/schema'
Implementations: 'https://bowtie.report/#/dialects/draft2020-12'
Specification: 'https://json-schema.org/draft/2020-12/json-schema-core.html'
Status: 'Stable'
---

### Access all data connected to draft 05
### Draft-05 Documents

- Core: [draft-wright-json-schema-00](https://json-schema.org/draft-05/draft-wright-json-schema-00.pdf) ([changes](https://json-schema.org/draft-05/draft-wright-json-schema-00.pdf#appendix-B))
- Validation: [draft-wright-json-schema-validation-00](https://json-schema.org/draft-05/draft-wright-json-schema-validation-00.pdf) ([changes](https://json-schema.org/draft-05/draft-wright-json-schema-validation-00.pdf#appendix-B))
Expand Down
4 changes: 1 addition & 3 deletions pages/draft-06/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ type: docs
authors: ['Austin Wright', 'Henry Andrews', 'Ben Hutton', 'Greg Dennis']
Metaschema: 'https://json-schema.org/draft/2020-12/schema'
Specification: 'https://json-schema.org/draft/2020-12/json-schema-core.html'
Implementations: 'https://bowtie.report/#/dialects/draft2020-12'
Status: 'Stable'
---

### Access all data connected to draft-06
### Draft-06 Documents

- Validation: [draft-wright-json-schema-validation-01](https://json-scheclsma.org/draft-06/draft-wright-json-schema-validation-01.html) ([changes](https://json-schema.org/draft-06/draft-wright-json-schema-validation-01.html#rfc.appendix.B)) ([schema migration FAQ](https://json-schema.org/draft-06/json-schema-release-notes))
- Hyper-Schema: [draft-wright-json-schema-hyperschema-01](https://json-schema.org/draft-06/draft-wright-json-schema-hyperschema-01.html) ([changes](https://json-schema.org/draft-06/draft-wright-json-schema-hyperschema-01.html#rfc.appendix.B)) ([hyper-schema migration FAQ](https://json-schema.org/draft-06/json-hyper-schema-release-notes))
Expand Down
4 changes: 1 addition & 3 deletions pages/draft-07/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ type: docs
authors: ['Austin Wright', 'Henry Andrews', 'Ben Hutton', 'Greg Dennis']
Metaschema: 'https://json-schema.org/draft/2020-12/schema'
Specification: 'https://json-schema.org/draft/2020-12/json-schema-core.html'
Implementations: 'https://bowtie.report/#/dialects/draft2020-12'
Status: 'Stable'
---

### Introduction

The JSON Schema Draft-07 introduces various updates to enhance the functionality of JSON Schemas in contrast to maintaining backward compatibility with Draft-06.

### Access all data connected to draft 07
### Draft-07 Documents

- Core: [draft-handrews-json-schema-01](https://json-schema.org/draft-07/draft-handrews-json-schema-01.html) ([changes](https://json-schema.org/draft-07/draft-handrews-json-schema-01.html#rfc.appendix.B))
- Validation: [draft-handrews-json-schema-validation-01](https://json-schema.org/draft-07/draft-handrews-json-schema-validation-01.html) ([changes](https://json-schema.org/draft-07/draft-handrews-json-schema-validation-01.html#rfc.appendix.B))
Expand Down
4 changes: 1 addition & 3 deletions pages/draft/2019-09/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ authors:
- Greg Dennis
Published: 17-September-2019
Metaschema: https://json-schema.org/draft/2020-12/schema
Implementations: https://bowtie.report/#/dialects/draft2020-12
Status: Stable
---

### Introduction
Expand All @@ -19,7 +17,7 @@ The JSON Schema Draft 2019-09 introduces updates and changes to improve the reli

One significant update is the shift to HTTPS for all meta-schema URIs. While the URIs remain accessible over HTTP due to certain limitations, the recommended standard is now firmly HTTPS.

### Access all data connected to draft 2019-09
### Draft 2019-09 Documents

**\*NOTE:** All meta-schema URIs now use `https://`. While currently also available over plain HTTP due to the limitations of GitHub pages and the need to keep prior drafts available over HTTP, only the HTTPS URIs should be used.\*

Expand Down
4 changes: 1 addition & 3 deletions pages/draft/2020-12/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Published: '16 June 2022'
type: docs
authors: ['Austin Wright', 'Henry Andrews', 'Ben Hutton', 'Greg Dennis']
Metaschema: 'https://json-schema.org/draft/2020-12/schema'
Implementations: 'https://bowtie.report/#/dialects/draft2020-12'
Specification: 'https://json-schema.org/draft/2020-12/json-schema-core.html'
Status: 'Stable'
---

### Introduction
Expand All @@ -23,7 +21,7 @@ Here's an overview of updates to Draft 2020-12;
- **Embedded Schemas and Bundling**: Provides guidance on bundling schemas into a Compound Schema Document.
- **Vocabulary Changes**: Separates the `format` vocabulary into `format-annotation` and `format-assertion`.

### Access all data connected to Draft 2020-12
### Draft 2020-12 Documents

- Specifications
- Core: [draft-bhutton-json-schema-01](https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01.html) ([changes](https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01.html#appendix-G))
Expand Down
2 changes: 0 additions & 2 deletions pages/format4/body.md

This file was deleted.

6 changes: 0 additions & 6 deletions pages/format4/index.md

This file was deleted.

45 changes: 0 additions & 45 deletions pages/format4/index.page.tsx

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import StyledMarkdown from '~/components/StyledMarkdown';
import { SectionContext } from '~/context';

export async function getStaticProps() {
const index = fs.readFileSync('pages/release-note/index.md', 'utf-8');
const index = fs.readFileSync('pages/release-notes/index.md', 'utf-8');
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
const { content: indexContent, data: indexData } = matter(index);
// const { content: bodyContent } = matter(main);
Expand Down

0 comments on commit b1fc371

Please sign in to comment.