Skip to content

Commit 8a71938

Browse files
benjagmdependabot[bot]Michael-ObeleAkshaybagai52TamannaVerma99
authored
Docs release 4 : Rebuild the Spec docs (#955)
* Rebase with main (#821) * chore(deps): bump eslint-plugin-react from 7.33.2 to 7.35.0 (#813) Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.33.2 to 7.35.0. - [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases) - [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.33.2...v7.35.0) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump Renato66/auto-label from 3.0.0 to 3.1.0 (#809) Bumps [Renato66/auto-label](https://github.com/renato66/auto-label) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/renato66/auto-label/releases) - [Commits](Renato66/auto-label@v3.0.0...v3.1.0) --- updated-dependencies: - dependency-name: Renato66/auto-label dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump eslint-plugin-n from 16.3.1 to 16.6.2 (#810) Bumps [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) from 16.3.1 to 16.6.2. - [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases) - [Changelog](https://github.com/eslint-community/eslint-plugin-n/blob/master/CHANGELOG.md) - [Commits](eslint-community/eslint-plugin-n@16.3.1...16.6.2) --- updated-dependencies: - dependency-name: eslint-plugin-n dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @types/react-syntax-highlighter (#812) Bumps [@types/react-syntax-highlighter](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-syntax-highlighter) from 15.5.10 to 15.5.13. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-syntax-highlighter) --- updated-dependencies: - dependency-name: "@types/react-syntax-highlighter" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @docsearch/react from 3.5.2 to 3.6.1 (#811) Bumps [@docsearch/react](https://github.com/algolia/docsearch) from 3.5.2 to 3.6.1. - [Release notes](https://github.com/algolia/docsearch/releases) - [Changelog](https://github.com/algolia/docsearch/blob/main/CHANGELOG.md) - [Commits](algolia/docsearch@v3.5.2...v3.6.1) --- updated-dependencies: - dependency-name: "@docsearch/react" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Web release 3 (#655) * Standardize List Display with Card Component (#433) (#460) * Standardize List Display with Card Component (#433) * Addressed comments, added images, and implemented new styles * Increased padding on the x-axis * feat: added Faq section (#534) * Fix faq * Added Case Studies page in Overview Section (#473) * updated UI of blog-page * Added Case Studies Page * fixed linting errors * Added casestudies * changing index.page.tsx * Delete components/CustomComponent.tsx * Delete pages/overview/casestudies.md * removed unnecessary changes * removed unnecessary files * fixed bug * removed changes * removed unnecessary files * Pushing last changes. --------- Co-authored-by: Benjamin Granados <[email protected]> * feat: added resource section (#509) * fixed * feat: added resource section * feat: added resource section * revert changes cd6d848 * revert changes 65e9f3e * revert changes 877b0f0 * revert changes 74711cd * fix: fixed the width issue * revert change * fix: added resource icon * Tiny changes to adjust look and feel. * Last changes to fix dark theme --------- Co-authored-by: Benjamin Granados <[email protected]> * Feat: Add the Newsletter feature to the website. (#489) * initialize the Test directory. * Added the subscribe button. * Added the subscribe page. * Added the newsletter page. * changed name to newsletter. * removed the unwated code. * removed the unwated components. * decreased the horizontal width and changed the color. * decreased the font size. * Added the changes for the newsletter banner. * Added the newletter component to landing page. * added the color for input. * Added the required horizontal padding. * Added the required horizontal padding. for newsletter page. * Add changes to make it work with mailchimp * added the yarn file back. * Added yarn.lock file. * Update yarn.lock * linted the newsletter.tsx * linted newsletter * fix the index.page * Small improvement in page layout. * Fix dark theme behavior * . --------- Co-authored-by: AyushNautiyalDeveloper <[email protected]> Co-authored-by: Benjamin Granados <[email protected]> * Added welcome page (#566) * added welcome page * Pushed some changes to changes - Better location in sidebar - Changes to move what is json schema into getting started - move page inside overview --------- Co-authored-by: Benjamin Granados <[email protected]> * Added Use-cases page (#589) * added use-cases page, modified card component * fix * Added some changes to better merge with the dev branch. --------- Co-authored-by: Benjamin Granados <[email protected]> * Change docs link * fix: spacing between buttons (#575) * docs: added definition of json hyper-schema * fixed * fix: spacing b/w buttons * fix: added spacing in mobile design * fix: spacing on tablet screen * fix: spacing on less than 300px screen * community-page (#646) * community-page * Some final changes for the community page --------- Co-authored-by: Benjamin Granados <[email protected]> * Update Sidebar.tsx * Add resources file * Update Sidebar.tsx * Update case-studies.json * Text colours for dark theme * New version of the implementers page * Feat: Replacing Axios to fs fetching in resources page (#657) * cleaning * changing axios to fs * Remove articles from sidebar --------- Co-authored-by: Benjamin Granados <[email protected]> * Improve Case Studies and Use Cases welcome messages * adding codeowners * Fixing bugs and adding back lost files * fix sidebar dropdown for FAQ * community page major changes and faq bug fix * community page bug fixes and responsive issues in several pages * Update index.page.tsx (#684) * Update index.page.tsx Edited the placeholder texts for the welcome page. * fixed lint error * Edited wordings for the Welcome page of release 3 * Update pages/overview/welcome/index.page.tsx Co-authored-by: Benjamin Granados <[email protected]> * Update pages/overview/welcome/index.page.tsx Co-authored-by: Benjamin Granados <[email protected]> * Remove data duplication and fix intro text --------- Co-authored-by: Benjamin Granados <[email protected]> Co-authored-by: Benjamin Granados <[email protected]> * Feat: Removing resources and newletter from web-release-3 branch (#698) * removing newsletter * removing resources * removing resources.yml file * removing resources from welcomee page --------- Co-authored-by: Benjamin Granados <[email protected]> * case-studies bug fix and hover delay fix * adding ts comment * Small corrections * Update blogs link * Ambassadors button aligned to the left * Feat: Fixing responsive bugs from community page * community page bug fixes * Added uses cases texts * Last changes to use-cases * Add html to the use cases definition * feat:adding html parser for use-cases page * removing links from images * improved FAQ description text (#709) * improved FAQ description text * Updated FAQ general questions * Updated FAQ description text for fix one-sentence bug * Update data/faq.json Co-authored-by: Benjamin Granados <[email protected]> * Update data/faq.json Co-authored-by: Benjamin Granados <[email protected]> * Update data/faq.json Co-authored-by: Benjamin Granados <[email protected]> * Update pages/overview/faq/index.page.tsx --------- Co-authored-by: Benjamin Granados <[email protected]> * Improvement for case studies * merge confilts * removing merge conflicts * Fix:community card gap * Align with main branch * Align with main branch * Align with main branch * Update pages/overview/what-is-jsonschema.md Co-authored-by: Ben Hutton <[email protected]> * Remove welcome data file * Move welcome outside overview section * Change welcome text * Feat: Replaced axios with fetch * moved path to function * Updating community filters * Update pages/community/index.page.tsx Co-authored-by: Ben Hutton <[email protected]> * Fix the menu links * Update the JSON Schema calendar link * Change ambassadors image --------- Co-authored-by: Michael Obubelebra Amachree <[email protected]> Co-authored-by: Akshay Bagai <[email protected]> Co-authored-by: Tamanna <[email protected]> Co-authored-by: Ayush Nautiyal <[email protected]> Co-authored-by: AyushNautiyalDeveloper <[email protected]> Co-authored-by: VivekJaiswal18 <[email protected]> Co-authored-by: Neeraj Saini <[email protected]> Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Blessing Ene Anyebe <[email protected]> Co-authored-by: Ben Hutton <[email protected]> * Add docs help component (#820) * Feat: Refactoring toc styles (#796) * refactoring toc * updating es * adding heading * adding heading * New slack redirect --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael Obubelebra Amachree <[email protected]> Co-authored-by: Akshay Bagai <[email protected]> Co-authored-by: Tamanna <[email protected]> Co-authored-by: Ayush Nautiyal <[email protected]> Co-authored-by: AyushNautiyalDeveloper <[email protected]> Co-authored-by: VivekJaiswal18 <[email protected]> Co-authored-by: Neeraj Saini <[email protected]> Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Blessing Ene Anyebe <[email protected]> Co-authored-by: Ben Hutton <[email protected]> * Feat: Adding next-prev component (#807) * feat: next-prev-comp inital * activating buttons * New spec page structure- (#823) * Spec draft fixes * Updating draft sections * metadata syntax fixes * modified spec docs * adding table component * adding title * Spec draft fixes-2 * Spec draft fixes-3 * doc-table * fixing draft7 * draft7 fix * converting in links * adding multiple files * Spec draft fixes-4 * Spec draft fixes-5 * Spec draft fixes-6 * Modified spec page * Modified json hyper-schema page * Resolved feedbacks * Update pages/draft-06/json-schema-release-notes.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/draft/2019-09/release-notes.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/draft-07/json-schema-release-notes.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/migration/index.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/draft-07/index.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/migration/index.page.tsx Co-authored-by: Benjamin Granados <[email protected]> * Update components/Sidebar.tsx Co-authored-by: Benjamin Granados <[email protected]> * Update pages/release-notes/index.page.tsx Co-authored-by: Benjamin Granados <[email protected]> * Update pages/release-notes/index.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/draft-06/index.md Co-authored-by: Benjamin Granados <[email protected]> * Update pages/draft-05/index.md Co-authored-by: Benjamin Granados <[email protected]> * modified meta-schema and specification links for all drafts * Multiple changes * Updated JSON Hyperschema introductory text * updated URL redirects * Fix date formats, redirects and broken links --------- Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Benjamin Granados <[email protected]> * fix merge issues * fix merge issues * Fix the usage of feedback component --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael Obubelebra Amachree <[email protected]> Co-authored-by: Akshay Bagai <[email protected]> Co-authored-by: Tamanna <[email protected]> Co-authored-by: Ayush Nautiyal <[email protected]> Co-authored-by: AyushNautiyalDeveloper <[email protected]> Co-authored-by: VivekJaiswal18 <[email protected]> Co-authored-by: Neeraj Saini <[email protected]> Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Dhairya Majmudar <[email protected]> Co-authored-by: Blessing Ene Anyebe <[email protected]> Co-authored-by: Ben Hutton <[email protected]>
1 parent 707bdde commit 8a71938

35 files changed

+1240
-634
lines changed

components/DocTable.tsx

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import React from 'react';
2+
import Link from 'next/link';
3+
4+
const DocTable = ({ frontmatter }: any) => {
5+
return (
6+
<>
7+
<div className='max-w-full mx-auto overflow-auto'>
8+
<table className='table-auto border-collapse w-full bg-slate-200 dark:bg-slate-900 text-slate-700 dark:text-slate-300'>
9+
<tbody>
10+
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
11+
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
12+
Specification
13+
</td>
14+
<td className='border border-slate-400 dark:border-slate-500 p-2'>
15+
<Link
16+
href={frontmatter.Specification}
17+
className='text-linkBlue'
18+
target='_blank'
19+
>
20+
{' '}
21+
{frontmatter.Specification}
22+
</Link>
23+
</td>
24+
</tr>
25+
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
26+
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
27+
Published
28+
</td>
29+
<td className='border border-slate-400 dark:border-slate-500 p-2'>
30+
{frontmatter.Published}
31+
</td>
32+
</tr>
33+
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 '>
34+
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
35+
Authors
36+
</td>
37+
<td className='border border-slate-400 dark:border-slate-500 p-2'>
38+
{frontmatter.authors.map((author: string, index: number) => {
39+
return <div key={index}>{author}</div>;
40+
})}
41+
</td>
42+
</tr>
43+
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
44+
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
45+
Metaschema
46+
</td>
47+
<td className='border border-slate-400 dark:border-slate-500 p-2 '>
48+
<Link
49+
href={frontmatter.Metaschema}
50+
className='text-linkBlue'
51+
target='_blank'
52+
>
53+
{frontmatter.Metaschema}
54+
</Link>
55+
</td>
56+
</tr>
57+
</tbody>
58+
</table>
59+
</div>
60+
</>
61+
);
62+
};
63+
64+
export default DocTable;

components/NextPrevButton.tsx

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
import Image from 'next/image';
2+
import React from 'react';
3+
import Link from 'next/link';
4+
5+
/*
6+
To use this component:
7+
1) Add prev and next metadata to the markdown page following this format:
8+
9+
---
10+
title: Creating your first schema
11+
section: docs
12+
prev:
13+
label: prev
14+
url: '#1'
15+
next:
16+
label: Miscellaneous examples
17+
url: '#2'
18+
---
19+
20+
2) Add the component to the typescript page:
21+
22+
import NextPrevButton from '~/components/NextPrevButton';
23+
24+
3) Add the component to the body of the page:
25+
26+
<NextPrevButton prevLabel={frontmatter.prev.label} prevURL={frontmatter.prev.url} nextLabel={frontmatter.next.label} nextURL={frontmatter.next.url} />
27+
*/
28+
29+
export default function NextPrevButton({
30+
prevLabel,
31+
prevURL,
32+
nextLabel,
33+
nextURL,
34+
}: any) {
35+
return (
36+
<div className='mb-4 flex flex-row gap-4'>
37+
<div className='h-auto w-1/2'>
38+
<div
39+
className='cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md transition-all duration-300 ease-in-out hover:border-gray-300 hover:shadow-lg dark:shadow-xl dark:hover:shadow-2xl dark:drop-shadow-lg
40+
lg:text-left'
41+
>
42+
<Link href={prevURL}>
43+
<div className='text-primary dark:text-slate-300 flex flex-row gap-5 text-[18px]'>
44+
<Image
45+
src={'/icons/arrow.svg'}
46+
height={10}
47+
width={10}
48+
alt='prev icon'
49+
className='rotate-180 w-5 '
50+
/>
51+
<div className='my-auto inline font-bold uppercase '>Go Back</div>
52+
</div>
53+
<div className='my-2 text-base font-medium text-slate-600 dark:text-slate-300'>
54+
{prevLabel}
55+
</div>
56+
</Link>
57+
</div>
58+
</div>
59+
60+
<div className='h-auto w-1/2'>
61+
<div className='h-full cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md transition-all duration-300 ease-in-out hover:border-gray-300 hover:shadow-lg dark:shadow-xl dark:drop-shadow-lg dark:hover:shadow-2xl lg:text-right'>
62+
<Link href={nextURL}>
63+
<div className='text-primary dark:text-slate-300 flex flex-row-reverse gap-5 text-[18px]'>
64+
<Image
65+
src={'/icons/arrow.svg'}
66+
height={10}
67+
width={10}
68+
alt='next icon '
69+
className='w-5'
70+
/>
71+
<div className='my-auto inline font-bold uppercase '>Up Next</div>
72+
</div>
73+
<div className='my-2 text-base font-medium text-slate-600 dark:text-slate-300'>
74+
{nextLabel}
75+
</div>
76+
</Link>
77+
</div>
78+
</div>
79+
</div>
80+
);
81+
}

components/Sidebar.tsx

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,17 @@ const getReferencePath = [
142142
'/implementers/interfaces',
143143
];
144144
const getSpecificationPath = [
145-
'/draft/2020-12/release-notes',
146-
'/draft/2019-09/release-notes',
147-
'/draft-07/json-schema-release-notes',
148-
'/draft-06/json-schema-release-notes',
149-
'/draft-05/readme',
150-
'/draft-07/json-hyper-schema-release-notes',
151-
'/draft-06/json-hyper-schema-release-notes',
145+
'/draft/2020-12',
146+
'/draft/2019-09',
147+
'/draft-07',
148+
'/draft-06',
149+
'/draft-05',
152150
'/specification-links',
151+
'/specification/migration',
152+
'/specification/release-notes',
153+
'/specification/json-hyper-schema',
153154
'/specification',
155+
'/specification-links',
154156
];
155157

156158
export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
@@ -680,54 +682,39 @@ export const DocsNav = ({
680682
id='specification'
681683
>
682684
<DocLink uri='/specification' label='Overview' setOpen={setOpen} />
685+
686+
<SegmentSubtitle label='Versions' />
687+
<div className='pl-4 pb-1 pt-1'>
688+
<DocLink uri='/draft/2020-12' label='2020-12' setOpen={setOpen} />
689+
690+
<DocLink uri='/draft/2019-09' label='2019-09' setOpen={setOpen} />
691+
<DocLink uri='/draft-07' label='draft-07' setOpen={setOpen} />
692+
<DocLink uri='/draft-06' label='draft-06' setOpen={setOpen} />
693+
<DocLink uri='/draft-05' label='draft-05' setOpen={setOpen} />
694+
</div>
695+
683696
<DocLink
684697
uri='/specification-links'
685698
label='Specification Links'
686699
setOpen={setOpen}
687700
/>
701+
688702
<DocLink
689-
uri='/draft/2020-12/release-notes'
690-
label='2020-12 notes'
691-
setOpen={setOpen}
692-
/>
693-
<DocLink
694-
uri='/draft/2019-09/release-notes'
695-
label='2019-09 notes'
696-
setOpen={setOpen}
697-
/>
698-
<DocLink
699-
uri='/draft-07/json-schema-release-notes'
700-
label='draft-07 notes'
703+
uri='/specification/migration'
704+
label='Migration'
701705
setOpen={setOpen}
702706
/>
703707
<DocLink
704-
uri='/draft-06/json-schema-release-notes'
705-
label='draft-06 notes'
708+
uri='/specification/release-notes'
709+
label='Release Notes'
706710
setOpen={setOpen}
707711
/>
712+
708713
<DocLink
709-
uri='/draft-05/readme'
710-
label='draft-05 notes'
714+
uri='/specification/json-hyper-schema'
715+
label='JSON Hyper-Schema'
711716
setOpen={setOpen}
712717
/>
713-
<SegmentSubtitle label='JSON Hyper-Schema' />
714-
<div className='pl-4 pb-1 pt-1'>
715-
<DocLink
716-
uri='/draft/2019-09/release-notes#hyper-schema-vocabulary'
717-
label='2019-09 notes'
718-
setOpen={setOpen}
719-
/>
720-
<DocLink
721-
uri='/draft-07/json-hyper-schema-release-notes'
722-
label='draft-07 notes'
723-
setOpen={setOpen}
724-
/>
725-
<DocLink
726-
uri='/draft-06/json-hyper-schema-release-notes'
727-
label='draft-06 notes'
728-
setOpen={setOpen}
729-
/>
730-
</div>
731718
</div>
732719
</div>
733720
</div>

pages/draft-05/[slug].page.tsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

pages/draft-05/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: 'Draft-05'
3+
Published: '13 October 2016'
4+
type: docs
5+
authors: ['Austin Wright']
6+
Metaschema: 'https://json-schema.org/draft-04/schema'
7+
Specification: 'https://json-schema.org/draft-05/draft-wright-json-schema-00.pdf'
8+
---
9+
10+
### Draft-05 Documents
11+
12+
- 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))
13+
- 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))
14+
- Hyper-Schema: [draft-wright-json-schema-hyperschema-00](https://json-schema.org/draft-05/draft-wright-json-schema-hyperschema-00.pdf) ([changes](https://json-schema.org/draft-05/draft-wright-json-schema-hyperschema-00.pdf#appendix-B))
15+
- Draft 5 was primarily a cleanup of Draft 4 and continued to use the Draft 4 meta-schemas.
16+
- Published: 13-October-2016

pages/draft-05/index.page.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import React from 'react';
2+
import { getLayout } from '~/components/Sidebar';
3+
import fs from 'fs';
4+
import matter from 'gray-matter';
5+
import StyledMarkdown from '~/components/StyledMarkdown';
6+
import { SectionContext } from '~/context';
7+
import DocTable from '~/components/DocTable';
8+
import { Headline1 } from '~/components/Headlines';
9+
import { DocsHelp } from '~/components/DocsHelp';
10+
11+
export async function getStaticProps() {
12+
const index = fs.readFileSync('pages/draft-05/index.md', 'utf-8');
13+
const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
14+
const { content: indexContent, data: indexData } = matter(index);
15+
const { content: bodyContent } = matter(main);
16+
17+
const frontmatter = { ...indexData };
18+
return {
19+
props: {
20+
blocks: {
21+
index: indexContent,
22+
body: bodyContent,
23+
},
24+
frontmatter,
25+
},
26+
};
27+
}
28+
29+
export default function ImplementationsPages({
30+
blocks,
31+
frontmatter,
32+
}: {
33+
blocks: any;
34+
frontmatter: any;
35+
}) {
36+
return (
37+
<SectionContext.Provider value={null}>
38+
<Headline1>{frontmatter.title}</Headline1>
39+
<DocTable frontmatter={frontmatter} />
40+
<StyledMarkdown markdown={blocks.index} />
41+
<StyledMarkdown markdown={blocks.body} />
42+
<DocsHelp />
43+
</SectionContext.Provider>
44+
);
45+
}
46+
ImplementationsPages.getLayout = getLayout;
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
---
2-
title: Explanation for lack of draft-05 meta-schemas
3-
section: docs
4-
---
1+
### Explanation for lack of draft-05 meta-schemas
52

6-
“Draft-05” in the sequential meta-schema numbering would have referred to the draft-wright-jsonschema*-00 specifications.
3+
“Draft-05” in the sequential meta-schema numbering would have referred to the draft-wright-jsonschema\*-00 specifications.
74

85
These specifications were intended as modernized and tidied versions of the specifications referenced by the “Draft-04” meta-schemas, so those draft-04 meta-schemas should continue to be used.
96

10-
“Draft-06” meta-schemas will be published for the next set of specifications.
7+
“Draft-06” meta-schemas will be published for the next set of specifications.

0 commit comments

Comments
 (0)