resume/build.sh

15 lines
386 B
Bash
Raw Normal View History

source $stdenv/setup
# Compile Sass sources and get resume file
mkdir build && cd build
mkdir css && sassc $src/scss/style.scss css/style.css
cp $src/resume.html resume.html
mkdir $out
# Save generated files
cp resume.html $out
mkdir $out/css && cp ./css/style.css $out/css
chromium --disable-gpu --headless --print-to-pdf="$out/Resume-Danila-Fedorin.pdf" file://$(pwd)/resume.html