From 6efb1212dd643dc98e71e272a1a66f042884edb9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 26 May 2023 10:09:16 -0300 Subject: content: sprawl divideTrackListsByGroups ...Instead of tangling it in from generateTrackInfoPage, page/track.js, and top-level page evaluation itself. This is why sprawling is better! --- src/write/bind-utilities.js | 6 ------ src/write/build-modes/live-dev-server.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src/write') diff --git a/src/write/bind-utilities.js b/src/write/bind-utilities.js index a31e02f7..d6053353 100644 --- a/src/write/bind-utilities.js +++ b/src/write/bind-utilities.js @@ -106,12 +106,6 @@ export function bindUtilities({ language, }); - bound.generateTrackListDividedByGroups = bindOpts(generateTrackListDividedByGroups, { - html, - language, - wikiData, - }); - bound.getGridHTML = bindOpts(getGridHTML, { [bindOpts.bindIndex]: 0, img: bound.img, diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js index d4b7472d..3cd3ed6b 100644 --- a/src/write/build-modes/live-dev-server.js +++ b/src/write/build-modes/live-dev-server.js @@ -102,7 +102,7 @@ export async function go({ }) => () => targetless ? [pageSpec.writeTargetless({wikiData})] - : pageSpec.pathsForTarget(target, {wikiInfo: wikiData.wikiInfo}))).flat(); + : pageSpec.pathsForTarget(target))).flat(); logInfo`Will be serving a total of ${pages.length} pages.`; -- cgit 1.3.0-6-gf8a5