diff --git a/.gitignore b/.gitignore index c995049..789a07a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/serve/ **/soupault.toml css/code.css +pgvv/ diff --git a/build.sh b/build.sh index 570bb4a..1a91192 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/deps.sh b/deps.sh index 46bdbc2..92b64a6 100755 --- a/deps.sh +++ b/deps.sh @@ -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