Skip to content

Commit

Permalink
fix: add more helpful dummy content
Browse files Browse the repository at this point in the history
Thanks @jasikpark !
Closes #15
  • Loading branch information
JulianCataldo committed Sep 23, 2022
1 parent a9c0908 commit b330095
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 30 deletions.
13 changes: 9 additions & 4 deletions demo/.remarkrc.mjs
Expand Up @@ -15,11 +15,16 @@ const remarkConfig = {
schemas: {
/* One schema for many files */
'./content/creative-work.schema.yaml': [
/* Support glob patterns */
'./content/broken-creative-work.md',
// './content/*-creative-work.md',
// './content/does-not-exist-anymore.md',
'./content/creative-work/the-shipwreck__global-broken.md',

/* Support glob patterns ———v */
// './content/creative-work/*.md',
// …
// `./` prefix is optional
// 'content/creative-work/foobiz.md',
// './content/elsewhere/does-not-exist-anymore.md',
],

// './content/ghost.schema.yaml': [
// './content/casper.md',
// './content/ether.md',
Expand Down
22 changes: 0 additions & 22 deletions demo/content/broken-creative-work.md

This file was deleted.

1 change: 1 addition & 0 deletions demo/content/creative-work.schema.yaml
Expand Up @@ -9,6 +9,7 @@ properties:
- Movie
- Painting
- Photo
- Musical piece
complex:
type: object
required:
Expand Down
@@ -0,0 +1,18 @@
---
'$schema': content/creative-work.schema.yaml

title: Behind the Gare St. Lazare, Paris, 1932
category: Video game
---

# Markdownish title-ish

> …Frontmatter **Schema** _validation_
1. ~~Head~~
2. ~~Shoulders~~
3. ~~Knees~~

---

[me cleeck](http://perdu.com)
@@ -1,18 +1,21 @@
---
'$schema': content/creative-work.schema.yaml

title: 2
category: Boucs 🐐
title: Guten Nachte
category: Musical piece

complex:
time: 8
---

# Markdownish title-ish

> …Frontmatter **Schema** _validation_
1. Head
2. Shoulder
2. Shoulders
3. Knees

---

[www.JulianCataldo.com](./link.foo)
[WideWebWorld](./link.foo)
23 changes: 23 additions & 0 deletions demo/content/creative-work/the-shipwreck__global-broken.md
@@ -0,0 +1,23 @@
---
# Schema association for this file is defined in:
# 🔗 `file:///./../../.remarkrc.mjs`

complex:
time: '1859'

## v—————— Must have a string title
# title: My Great Title 🤩

## v—————— Must be `Book` | `Movie` | …
category: Car
---

# You're welcome!

**Associated globally in [.remarkrc.mjs](.remarkrc.mjs)**

…Frontmatter Schema Validation…

---

© 2222 — ACME incorporated corporation reserved.

0 comments on commit b330095

Please sign in to comment.