From 59260c4f7a265f1ad4db9e0ee5e469132cdef094 Mon Sep 17 00:00:00 2001 From: Matt Kosarek Date: Wed, 18 Feb 2026 17:03:06 -0500 Subject: minor: publishing from public with a Makefile instead of having everything at the toplevel --- download/build.js | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 download/build.js (limited to 'download/build.js') diff --git a/download/build.js b/download/build.js deleted file mode 100644 index 6c58162..0000000 --- a/download/build.js +++ /dev/null @@ -1,50 +0,0 @@ - - -const fs = require('fs'); -const childProcess = require('child_process'); - -const resumeHtml = fs.readFileSync('../resume.html').toString(); -const resumeCss = fs.readFileSync('../resume.css').toString(); -const resumeDlCss = fs.readFileSync('./resume_dl.css').toString(); - -function getRidofTagsBetween(start, end, html) { - let si = newHtml.indexOf(start); - let ei = newHtml.indexOf(end, si) + end.length; - return html.substring(0, si) + newHtml.substring(ei); -} - -const newHeader = ` - - - - - - - - - - - -` - -const startHead = resumeHtml.indexOf(''); -const endHead = resumeHtml.indexOf('') + ''.length; - -let newHtml = resumeHtml.substring(0, startHead) + newHeader + resumeHtml.substring(endHead); - -newHtml = getRidofTagsBetween('
', '
', newHtml); -newHtml = getRidofTagsBetween(`
`, '
', newHtml); - -fs.writeFileSync('./resume_dl.html', newHtml); - -childProcess.exec('wkhtmltopdf --encoding \'UTF-8\' ./resume_dl.html cv.pdf ') -- cgit v1.2.1