Add step to build resume and copy the PDF over

This commit is contained in:
2026-09-07 11:44:51 -04:00
parent 9d5f038dad
commit 16a58a4daf

View File

@@ -320,6 +320,17 @@ gen_index_page() { # Generate an index page (site map) that includes links to th
} }
build_resume() {
if [[ ! -f "${BASE_PATH}/resume/main.typ" ]]; then
echo "ERROR: Resume Typst file is missing. Ensure the file is located at ${BASE_PATH}/resume/main.typ" >&2
exit
fi
echo "Building resume..."
typst compile "${BASE_PATH}/resume/main.typ"
cp "${BASE_PATH}/resume/main.pdf" "${BASE_PATH}/files/resume.pdf"
}
copy_things_in() { copy_things_in() {
cp "${BASE_PATH}/styles.css" "${BASE_PATH}/output/" cp "${BASE_PATH}/styles.css" "${BASE_PATH}/output/"
cp -r "${BASE_PATH}/files" "${BASE_PATH}/output/" cp -r "${BASE_PATH}/files" "${BASE_PATH}/output/"
@@ -340,5 +351,6 @@ md_to_html
gen_sorted_file_list # Sets the 'sorted_file_list' variable gen_sorted_file_list # Sets the 'sorted_file_list' variable
gen_rss_feed "$sorted_file_list" # Uses the 'sorted_file_list' variable gen_rss_feed "$sorted_file_list" # Uses the 'sorted_file_list' variable
gen_index_page "$sorted_file_list" # Uses the 'sorted_file_list' variable gen_index_page "$sorted_file_list" # Uses the 'sorted_file_list' variable
build_resume
copy_things_in copy_things_in
clean_up clean_up