2023-02-19 20:06:47 -08:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
# Compile Sass sources and get resume file
|
|
|
|
mkdir build && cd build
|
|
|
|
mkdir css && sassc $src/scss/style.scss css/style.css
|
2023-02-19 22:22:23 -08:00
|
|
|
mkdir font && cp $src/font/* font/
|
2023-02-19 22:45:51 -08:00
|
|
|
mkdir js && cp $src/js/* js/
|
2023-02-19 20:06:47 -08:00
|
|
|
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
|