master
Marko Semet 2019-05-22 09:06:59 +02:00
parent 988e0bb590
commit d0f547102b
2 changed files with 10 additions and 3 deletions

11
gen.sh
View File

@ -1,8 +1,15 @@
#!/usr/bin/env bash
# Init venv
echo "Create venv" &&
cd `dirname $0` &&
rm -rf ./venv &&
python3 -m venv venv &&
source ./venv/bin/activate &&
# Install updates
pip3 install --upgrade --user pip &&
pip3 install --upgrade --user pelican markdown htmlmin &&
pip install --upgrade pip &&
pip install --upgrade pelican markdown htmlmin &&
# Clean and generate
(rm -rf output || true) &&

View File

@ -4,7 +4,7 @@ if __name__ == '__main__':
# Install cssutils
import subprocess
subprocess.check_call(("pip", "install", "--upgrade", "--user", "cssutils"))
subprocess.check_call(("pip", "install", "--upgrade", "cssutils"))
# Run tool
import base64