feat: refactor some shit

This commit is contained in:
Max Richter
2025-08-17 00:46:45 +02:00
parent 43644c4f40
commit cc8f967f07
20 changed files with 459 additions and 209 deletions

View File

@@ -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)

View File

@@ -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}
}

View File

@@ -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
{