Files
ReachableCEO-Profile-Consul…/build/build-pipeline-server-markdown.sh
Charles N Wyble 3bbac23e1d Squashed 'vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server/' changes from 0c25dd1..bbcfd90
bbcfd90 .

git-subtree-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-subtree-split: bbcfd901801345c73322ae0a20bc049d2357771b
2024-12-18 08:52:28 -06:00

42 lines
1.4 KiB
Bash

#!/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
echo "Creating consultant info sheet..."
$MO_PATH $YamlInputTemplateFileConsultantInfoSheet > $BUILDYAML_CONSULTANT_INFOSHEET
$MO_PATH $PipelineClientWorkingDir/Templates/ConsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile"
pandoc \
"$ConsultantInfoSheetMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_CONSULTANT_INFOSHEET" \
--from markdown \
--to=pdf \
--output $ConsultantInfoSheetPDFOutputFile
#############################################
# Create the consultant profile PDF
#############################################
echo "Creating consultant profile..."
$MO_PATH $YamlInputTemplateFileConsultantProfile > $BUILDYAML_CONSULTANT_PROFILE
pandoc \
"$ConsultantProfileMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_CONSULTANT_PROFILE" \
--from markdown \
--to=pdf \
--output $ConsultantProfilePDFOutputFile