From c55e106cdb65cfd651ffcc8e914ffde3b6bbb383 Mon Sep 17 00:00:00 2001 From: Hans Fast Date: Wed, 18 Mar 2026 15:42:45 +0100 Subject: [PATCH] pipeline.ori: pull initial pipeline apart to avoid double running of pipeline --- pipeline.ori | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pipeline.ori b/pipeline.ori index d433796..cd37d55 100644 --- a/pipeline.ori +++ b/pipeline.ori @@ -5,7 +5,6 @@ server or copy site.ori to build final output. */ (all) => { - //put the file selection part in a closure, so that the list of all files is kept private. /* list is all the files in current directory. allfiles is all source files: ending with `.md` and not starting with `_`. @@ -24,15 +23,15 @@ // pubfiles: pubfiles.sh(allfiles) (list): .. allfiles: Tree.filter(list, (val, key) => key.endsWith('.md') && !key.startsWith('_')) - → (items) => Tree.map(items, {value: (value) => Origami.document(value)}) //if I don't use the verbose syntax I get the filename characters as part of value! - → (items) => Tree.map(items, { value: (value, key) => addFilenameData.js(value, key)}) + documents: Tree.map(allfiles, {value: (value) => Origami.document(value)}) //if I don't use the verbose syntax I get the filename characters as part of value! + withfndata: Tree.map(documents, { value: (value, key) => addFilenameData.js(value, key)}) - pubfiles: Tree.filter(allfiles, (val, key) => val.fnd.tags?.includes('pub')) + pubfiles: Tree.filter(withfndata, (val, key) => val.fnd.tags?.includes('pub')) /* Now convert to html. */ - asHtml: Tree.map(all ? allfiles: pubfiles, { + asHtml: Tree.map(all ? withfndata: pubfiles, { value: (value) => Origami.mdHtml(value) key: (value, key) => `${value.fnd.name}.html` })