Update render script and Makefile

This commit is contained in:
Jonas Zeunert
2024-04-22 21:54:39 +02:00
parent 2d63fe63cd
commit 4d0cd768f7
10975 changed files with 47095 additions and 4031084 deletions

View File

@@ -1,15 +1,17 @@
#!/bin/bash
set -euxo pipefail
function convert_html() {
echo "Now converting $1"
[ -f $1 ] || return
name=$(basename ${1%.md}.html)
pandoc -f markdown $1 > html/$name || true
}
export -f convert_html
cd awesm-converter
cargo run ../lists --render-dir ../terminal --readme-dir ../readmes
cd ..
mkdir -p html
for file in readmes/*.md; do
[ -f $file ] || break
name=$(basename ${file%.md}.html)
echo $name
pandoc -f markdown $file > html/$name || true
done;
ls readmes | parallel convert_html readmes/{}