Created
August 23, 2020 03:59
-
-
Save kevinslin/5ca7a6f25a239add5ea374f329e6a19e to your computer and use it in GitHub Desktop.
Schema Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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