Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Schema Examples
# schema for journals
# the following schema will match the follwoing
#
# journal
# journal.2020
# journal.2020.09
# journal.2020.09.12
# journal.2020.09.12.foo.md
version: 1
schemas:
- id: journal
title: journal
desc: ""
parent: root
children:
- year
- id: year
title: year
pattern: "[0-2][0-9][0-9][0-9]"
children:
- month
- id: month
title: month
pattern: "[0-9][0-9]"
children:
- day
- id: day
title: day
pattern: "[0-9][0-9]"
namespace: true
# schema for projects
# the following schema will match the follwoing
#
# project.foo.journal
# project.foo.journal.2020
# project.foo.journal.2020.09
# project.foo.journal.2020.09.12
# project.foo.journal.2020.09.12.foo.md
version: 1
imports:
- journal
schemas:
- id: project
title: project
desc: ""
parent: root
namespace: true
children:
- journal.journal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.