Add step to build resume and copy the PDF over
This commit is contained in:
12
build.sh
12
build.sh
@@ -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() {
|
||||
cp "${BASE_PATH}/styles.css" "${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_rss_feed "$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
|
||||
clean_up
|
||||
|
||||
Reference in New Issue
Block a user