that took longer than i would have liked

This commit is contained in:
Charles N Wyble 2024-12-09 13:13:30 -06:00
parent 77c88bffcd
commit b2ff9ecce9
7 changed files with 36 additions and 17 deletions

View File

@ -0,0 +1,7 @@
title: "First Middle Last Resume"
header-left: "\\hspace{1cm}"
header-center: "\\leftmark"
header-right: "Page \\thepage"
footer-left: "First Middle Last"
urlcolor: blue
page-background: "../vendor/git.knownelement.com/ExternalVendorCode/pandoc-latex-template/examples/page-background/backgrounds"

12
build-temp/JobBoard.yml Normal file
View File

@ -0,0 +1,12 @@
title: "First Middle Last Resume"
titlepage: true
titlepage-logo: ""
date: \today
header-left: "\\hspace{1cm}"
header-center: "\\leftmark"
header-right: "Page \\thepage"
footer-left: "First Middle Last"
footer-center: "Your.Tagline.Here."
footer-right: "[Source code for this resume](https://github.com/reachableceo)"
urlcolor: blue
page-background: "../vendor/git.knownelement.com/ExternalVendorCode/pandoc-latex-template/examples/page-background/backgrounds"

View File

@ -7,6 +7,6 @@ header-center: "\\leftmark"
header-right: "Page \\thepage"
footer-left: "{{CandidateName}}"
footer-center: "{{CandidateTagline}}"
footer-right: "[Source code for this resume]({{ResumeSourceCode}}"
footer-right: "[Source code for this resume]({{ResumeSourceCode}})"
urlcolor: {{URLCOLOR}}
page-background: "{{PAGEBACKGROUND}}"

View File

@ -1,25 +1,25 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
source "$(dirname "${BASH_SOURCE[0]}")/bash3boilerplate.sh"
# Load environment variables
source "./ResumeVariables.env"
#source "$(dirname "${BASH_SOURCE[0]}")/bash3boilerplate.sh"
# Setup globals
#readonly BUILD_OUTPUT_DIR="../build-output"
readonly BUILD_TEMP_DIR="../build-temp"
readonly BUILD_OUTPUT_DIR="../build-output"
readonly BUILD_YAML_JOB_BOARD="$BUILD_TEMP_DIR/BuildJobBoard.yml"
readonly BUILD_YAML_CLIENT_SUBMISSION="$BUILD_TEMP_DIR/BuildClientSubmission.yml"
readonly BUILDYAML_JOBBOARD="$BUILD_TEMP_DIR/JobBoard.yml"
readonly BUILDYAML_CLIENTSUBMISSION="$BUILD_TEMP_DIR/ClientSubmission.yml"
readonly CANDIDATE_NAME="$CandidateName"
readonly CANDIDATE_LOGO="$CandidateLogo"
readonly CANDIDATE_TAGLINE="$CandidateTagline"
readonly RESUME_SOURCE_CODE="$ResumeSourceCode"
readonly URL_COLOR="$URLCOLOR"
readonly PAGE_BACKGROUND="$PAGEBACKGROUND"
#TODO make this work. For now, editing this script and setting the below export lines is required.
#source ./ResumeVariables.env
# Expand variables into rendered YAML files
./mo "MarkdownResume-BuildTemplateInput-ClientSubmission.yml" > "$BUILD_YAML_CLIENT_SUBMISSION"
./mo "MarkdownResume-BuildTemplateInput-JobBoard.yml" > "$BUILD_YAML_JOB_BOARD"
export CandidateName="First Middle Last"
export CandidateLogo=""
export CandidateTagline="Your.Tagline.Here."
export ResumeSourceCode="https://git.knownelement.com/reachableceo/MarkdownResume-Pipeline"
export URLCOLOR="blue"
export PAGEBACKGROUND="../vendor/git.knownelement.com/ExternalVendorCode/pandoc-latex-template/examples/page-background/backgrounds"
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
./mo ./BuildTemplate-JobBoard.yml > $BUILDYAML_JOBBOARD
./mo ./BuildTemplate-ClientSubmission.yml > $BUILDYAML_CLIENTSUBMISSION