diff --git a/pathsToObjs.js b/pathsToObjs.js index c48d471..377b718 100644 --- a/pathsToObjs.js +++ b/pathsToObjs.js @@ -27,7 +27,7 @@ let examplepaths = [ export default function process(paths) { return paths .map(path => path.split('/') - //.slice(1) //if path starts with / or ./ + .slice(1) //if path starts with / or ./ ) .reduce((tree, path) => insert(tree, path), {}); } diff --git a/pipeline.ori b/pipeline.ori index 0b34c73..c887ea1 100644 --- a/pipeline.ori +++ b/pipeline.ori @@ -61,9 +61,13 @@ } }) - links: Tree.flat(Tree.map(renderedPages, getLinkedFilesFromHtml.js), 3) - //→ (links) => Tree.flat(links, 2) // → (a) => [...new Set(a)] - //linksAstree: pathsToObjs.js(links) + //bug in 0.6.14? + linksByFile: Tree.map(renderedPages,getLinkedFilesFromHtml.js) + uniqueLinks: Tree.flat(linksByFile, 2) → (a) => [...new Set(a)] + //links: Tree.flat(Tree.map(renderedPages, getLinkedFilesFromHtml.js), 2) + // → (links) => Tree.flat(links, 2) → (a) => Tree.values([...new Set(a)]/0) + linksAsTree: pathsToObjs.js(uniqueLinks) + onlyLinkedFiles: Tree.mask(list, linksAsTree) /* diff --git a/site.ori b/site.ori index 9f7bb71..1cd6078 100644 --- a/site.ori +++ b/site.ori @@ -2,5 +2,5 @@ (src): pipeline.ori(all) index.html: src/index.html ...src/pagesInFolders - css: src/css + ...src/onlyLinkedFiles }