Skip to content

Instantly share code, notes, and snippets.

@kevinslin
Created August 23, 2020 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinslin/5ca7a6f25a239add5ea374f329e6a19e to your computer and use it in GitHub Desktop.
Save kevinslin/5ca7a6f25a239add5ea374f329e6a19e to your computer and use it in GitHub Desktop.
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