CV/cv.sh

39 lines
1.1 KiB
Bash

#!/bin/bash
filename="Oscar Pocock - CV - $(date +%Y-%m-%d)"
mkdir -p ./output/html
mkdir -p ./output/pdf
mkdir -p ./output/latex
for i in $(ls ./sections/general/*.md); do
echo $i
cvSectionName=$(basename "$i" .md)
pandoc --section-divs -f markdown -t html5 -o ./output/html/$cvSectionName.html $i
done
for i in $(ls ./sections/public/*.md); do
echo $i
cvSectionName=$(basename "$i" .md)
pandoc --section-divs -f markdown -t html5 -o ./output/html/$cvSectionName.html $i
done
for i in $(ls ./sections/common/*.md); do
echo $i
cvSectionName=$(basename "$i" .md)
pandoc --section-divs -f markdown -t html5 -o ./output/html/$cvSectionName.html $i
done
pandoc --metadata title=" " --standalone -H ./style.css --section-divs -f markdown -t html5 \
-o "./$filename.html" \
-A ./output/html/details.html \
-A ./output/html/profile.html \
-A ./output/html/skills.html \
-A ./output/html/languages.html \
-A ./output/html/work-experience.html \
-A ./output/html/certifications.html \
-A ./output/html/projects.html \
-A ./output/html/education.html \
-A ./output/html/interests.html \
-A ./output/html/references.html \
./cv.md