3 ms·
I did something similar for mine, I do markdown-to-html using pandoc, then replace the language labels using find (so that prism.js works). I've got it all runn
by askiiart 3y ago
I did something similar for mine, I do markdown-to-html using pandoc, then replace the language labels using find (so that prism.js works). I've got it all running via a little Python script (I would've done bash but I'm terrible at it) to generate all the the files easily, rather than going through one-by-one: https://git.askiiart.net/askiiart/askiiart-net/src/branch/main/md2html.py https://git.askiiart.net/askiiart/askiiart-net/src/branch/ma...
I might move to something make-based like this, looks interesting.
- mjburgess 3y agojust use (gnu) parallel
- askiiart 3y agoUpdate: I made it into a bash script, and now it only runs on changed or new files. Far more efficient, both because it's just bash, and because it only runs on what's needed. https://github.com/askiiart/askiiart.github.io/blob/main/md2html.sh https://github.com/askiiart/askiiart.github.io/blob/main/md2... or https://git.askiiart.net/askiiart/askiiart-net/src/branch/main/md2html.sh https://git.askiiart.net/askiiart/askiiart-net/src/branch/ma...