From: Lady Date: Sat, 2 Sep 2023 19:40:53 +0000 (-0400) Subject: Fix djot warnings X-Git-Tag: 0.3.1 X-Git-Url: https://git.ladys.computer/GitWikiWeb/commitdiff_plain/ac5731b94f2999f5100f0c64fe992633228508ef?ds=sidebyside;hp=d9a91373bf04efa4b721ccd80b71d7c8b201b3d9 Fix djot warnings The `reference` variable is used in printing the warnings and so needs to be set prior to parsing the page. --- diff --git a/build.js b/build.js index 0eb61fd..ae250ca 100644 --- a/build.js +++ b/build.js @@ -594,6 +594,7 @@ class GitWikiWebPage { `GitWikiWeb: git cat-file returned nonzero exit code: ${catstatus.code}.`, ); } else { + const reference = `${namespace}:${pageName}`; const page = new GitWikiWebPage( namespace, pageName, @@ -604,7 +605,6 @@ class GitWikiWebPage { source, config, ); - const reference = `${namespace}:${pageName}`; pages.set(reference, page); requiredButMissingPages.delete(reference); }