Skip to content

Commit

Permalink
Validate misc.json, format
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Dec 19, 2023
1 parent a7729f0 commit 741347e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions scripts/validateData.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import packages from '../src/routes/packages/packages.json' assert { type: 'json
import templates from '../src/routes/templates/templates.json' assert { type: 'json' };
import books from '../src/routes/resources/books.json' assert { type: 'json' };
import extensions from '../src/routes/resources/extensions.json' assert { type: 'json' };
import misc from '../src/routes/resources/misc.json' assert { type: 'json' };
import videos from '../src/routes/resources/videos.json' assert { type: 'json' };

packagesSchema.parse(packages);
Expand All @@ -19,5 +20,8 @@ console.log('Validated books.json');
resourcesSchema.parse(extensions);
console.log('Validated extensions.json');

resourcesSchema.parse(misc);
console.log('Validated misc.json');

resourcesSchema.parse(videos);
console.log('Validated videos.json');
4 changes: 2 additions & 2 deletions src/routes/help/submitting/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
To add a new package on the website, the process is rather simple. You have to add a snippet in
the appropriate file.
</p>
<br/>
<br />
<p>Each package is represented by a JSON Object. Use the generator below to generate the Object.</p>
<br/>
<br />
<p><code>*</code> marked fields are required</p>
<div class="json-generator">
<div class="input-wrapper">
Expand Down
1 change: 0 additions & 1 deletion src/routes/templates/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@
"url": "https://sveltepress.site/",
"repository": "https://github.com/SveltePress/sveltepress",
"description": "A markdown centered site build tool with full power of sveltekit.",
"npm": "@sveltepress/create",
"category": "SvelteKit",
"tags": ["markdown", "integrations"]
},
Expand Down

0 comments on commit 741347e

Please sign in to comment.