local highlighter

This commit is contained in:
Alexander 2025-06-14 14:31:35 -04:00
parent b9df659e5d
commit 8c5b42a1b1
3 changed files with 11 additions and 8 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
**/serve/
**/soupault.toml
css/code.css
pgvv/

View file

@ -8,16 +8,18 @@ function soup_config {
cat soupault.toml.frag* >> soupault.toml
}
source ./pgvv/bin/activate
rm css/code.css
pygmentize -f html -S algol_nu | grep -v 'line-height' > css/code.css
builtin pushd acl.cool
#rm -rf serve/
soup_config
soupault
popd
builtin pushd ytheleus.org
#rm -rf serve/
soup_config
soupault
popd
deactivate

12
deps.sh
View file

@ -1,11 +1,11 @@
#!/bin/sh
which dnf 2> /dev/null
if [[ $? == 0 ]]; then
sudo dnf install -y python3-pygments
else
echo 'failed to install pygments with dnf' >&2
exit 1
if ! [[ -d pgvv/ ]]; then
python3 -m venv pgvv
source ./pgvv/bin/activate
python3 -m pip install --upgrade pip
pip install --upgrade pygments
deactivate
fi
which opam 2> /dev/null