pages/build.sh
2025-06-14 17:50:16 -04:00

34 lines
823 B
Bash
Executable file

#!/bin/bash
./deps.sh
find acl.cool/serve/ ytheleus.org/serve/ -type f -mmin +11 -delete
function soup_config {
rm soupault.toml
cp ../soupault.toml soupault.toml
cat soupault.toml.frag* >> soupault.toml
}
source ./pgvv/bin/activate
find acl.cool/site/ ytheleus.org/site/ -type f \( -name '*.dj' -o -name '*.html' \) -exec cat {} + > all_chars.txt
for font in fonts/JuliaMono/*{-Light,-Regular,-SemiBold}{,Italic}.woff2; do
echo "Subsetting $font"
pyftsubset "$font" --flavor=woff2 --text-file=all_chars.txt \
--output-file="$(awk -F '.woff2' '{print $1}' <<< "$font")-Subset.woff2"
done
rm css/code.css
pygmentize -f html -S algol_nu | grep -v 'line-height' > css/code.css
builtin pushd acl.cool
soup_config
soupault
popd
builtin pushd ytheleus.org
soup_config
soupault
popd
deactivate