Load each category of a source whose manifest carries an index on first reach, and move the shipped index into data/.fejkdata.json

This commit is contained in:
2026-10-09 19:11:37 +02:00
committed by Lillem4n
parent 7d5b32fe3f
commit c320344fac
15 changed files with 491 additions and 285 deletions
+4 -2
View File
@@ -84,13 +84,15 @@ func inputValue(input string) jsonvalue.Value {
return raw
}
// loadInline loads the shipped categories n reads, then runs n through the pipeline against root.
// loadInline loads the unloaded categories n reads, then runs n through the pipeline against root.
func loadInline(root *folder, n node, label string, typedByGo bool) error {
nodes := inlineNodes(n, label)
if err := refuseFolderRefs(nodes); err != nil {
return err
}
loadShipped(root, unloadedReads(root, nil, nodes))
if err := loadReached(root, nil, referenced(root, nil, nodes)); err != nil {
return err
}
return pipeline{
nodes: nodes,
resolve: func() error { return resolveInlineTemplates(nodes, root.children) },