feat: refactor some shit
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
description: "Core capture aliases for Marka"
|
||||
patterns:
|
||||
text: ".+"
|
||||
word: "\\S+"
|
||||
num: "(?:\\d+(?:[.,]\\d+)?(?:\\s?\\d+/\\d+)?)" # 3 | 1.5 | 1 1/2
|
||||
indexMarker: "\\d+[.)]" # 1. / 1)
|
@@ -28,9 +28,6 @@ var templates embed.FS
|
||||
//go:embed schema-org/*
|
||||
var schemas embed.FS
|
||||
|
||||
//go:embed aliases/*
|
||||
var aliases embed.FS
|
||||
|
||||
func GetTemplates() Source {
|
||||
return src{fsys: templates}
|
||||
}
|
||||
@@ -49,11 +46,3 @@ func GetTemplate(name string) (string, error) {
|
||||
|
||||
return string(templateBytes), nil
|
||||
}
|
||||
|
||||
func GetSchemas() Source {
|
||||
return src{fsys: schemas}
|
||||
}
|
||||
|
||||
func GetAliases() Source {
|
||||
return src{fsys: aliases}
|
||||
}
|
||||
|
@@ -2,10 +2,6 @@
|
||||
{
|
||||
path: .
|
||||
codec: yaml
|
||||
required: true
|
||||
assert:
|
||||
"@context": https://schema.org/
|
||||
"@type": Recipe
|
||||
fields:
|
||||
- path: name
|
||||
codec: text
|
||||
@@ -18,28 +14,22 @@
|
||||
value: Person
|
||||
- path: author.name
|
||||
codec: text
|
||||
required: true
|
||||
- path: datePublished
|
||||
codec: text
|
||||
optional: true
|
||||
- path: description
|
||||
codec: text
|
||||
optional: true
|
||||
- path: prepTime
|
||||
codec: text
|
||||
optional: true
|
||||
- path: cookTime
|
||||
codec: text
|
||||
optional: true
|
||||
- path: recipeYield
|
||||
codec: text
|
||||
optional: true
|
||||
}
|
||||
---
|
||||
|
||||
# { name | text,required }
|
||||
|
||||
{ description | text,optional }
|
||||
{ description | text }
|
||||
|
||||
## Ingredients
|
||||
{
|
Reference in New Issue
Block a user