From 6ee522ce56710de681c50dbda374cc466b2fc3c4 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Tue, 17 Dec 2024 13:46:10 -0600 Subject: [PATCH] first cut of consultant profile backend --- build/build-pipeline-server-markdown.sh | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 build/build-pipeline-server-markdown.sh diff --git a/build/build-pipeline-server-markdown.sh b/build/build-pipeline-server-markdown.sh new file mode 100644 index 0000000..06a36c0 --- /dev/null +++ b/build/build-pipeline-server-markdown.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +set -euo pipefail + +##################################################################################################### +#Markdown to PDF Consultant information sheet and profile +##################################################################################################### + +############################################# +# Create the consultant information PDF +############################################# + +# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts + +$MO_PATH $YamlInputTemplateFileConsultantInfoSheet > $BUILDYAML_CONSULTANT_INFOSHEET + +echo "Creating candidate info sheet..." + +$MO_PATH $PipelineClientWorkingDir/Templates/Consultant/CounsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile" + +pandoc \ +"$ConsultantInfoSheetMarkdownOutputFile" \ +--template $PANDOC_TEMPLATE \ +--metadata-file="$BUILDYAML_CONSULTANT_INFOSHEET" \ +--from markdown \ +--to=pdf \ +--output $ConsultantInfoSheetPDFOutputFile + +############################################# +# Create the consultant profile PDF +############################################# + +# Coming later \ No newline at end of file