From: Lady Date: Sat, 29 Jul 2023 06:50:35 +0000 (-0700) Subject: Also render the AST for debugging X-Git-Tag: 0.2.2~1 X-Git-Url: https://git.ladys.computer/GitWikiWeb/commitdiff_plain/ee8812741aa9018537b39ce40ffca964e2703950 Also render the AST for debugging --- diff --git a/build.js b/build.js index b50fe3d..b69e986 100644 --- a/build.js +++ b/build.js @@ -921,6 +921,7 @@ class GitWikiWebPage { }, }; }); + const renderedAST = djot.renderAST(ast); const doc = getDOM(template); const result = getDOM(`${djot.renderHTML(ast)}`); const headElement = domutils.findOne( @@ -979,6 +980,13 @@ class GitWikiWebPage { { createNew: true }, ), ); + promises.push( + Deno.writeTextFile( + `${DESTINATION}/${pageRef}/index.ast`, + renderedAST, + { createNew: true }, + ), + ); promises.push( Deno.writeTextFile( `${DESTINATION}/${pageRef}/source.djot`,