~bfluhr/website

06adcfdccd6827f28b2257180a0b7b53a58e948f — Benedikt Fluhr 2 years ago 0248641
Copying .htaccess for Images, Added Missing File
3 files changed, 13 insertions(+), 2 deletions(-)

A unreferenced.json
M util/build.ts
A util/dom-parser.ts
A unreferenced.json => unreferenced.json +3 -0
@@ 0,0 1,3 @@
[ "/misc/index.html",
  "/notes/interleavings-1d/img/mpl/.htaccess"
]

M util/build.ts => util/build.ts +5 -2
@@ 35,6 35,8 @@ const mathjax_script_tags = domParser.parseFromString(
    mathjax_as_text, 'text/html'
).querySelectorAll('script');

const unreferenced_promise = Deno.readTextFile('unreferenced.json')
      .then(JSON.parse);

const process = async function(processing_started, to_process) {
    const path = to_process.pop();


@@ 102,10 104,11 @@ const process = async function(processing_started, to_process) {

const processing_started = ['/index.html'];

const unreferenced = await unreferenced_promise;

const to_process = getRefPaths(
    pubignore, processing_started, '/index.html', root_doc
);
to_process.push('/misc/index.html');
).concat(unreferenced);

process(processing_started, to_process);


A util/dom-parser.ts => util/dom-parser.ts +5 -0
@@ 0,0 1,5 @@
import { DOMParser } from "https://deno.land/x/deno_dom/deno-dom-wasm.ts";

const domParser = new DOMParser();

export { domParser };