Compare commits

..

5 Commits

Author SHA1 Message Date
dd5182bd46 Update "ConsultantProfilePipeline-Server" from "https://git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server.git@main"
git-vendor-name: ConsultantProfilePipeline-Server
git-vendor-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-vendor-repository: https://git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server.git
git-vendor-ref: main
2024-12-18 09:22:46 -06:00
235428c542 Squashed 'vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server/' changes from bbcfd90..4fdcc9b
4fdcc9b .

git-subtree-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-subtree-split: 4fdcc9b50a1851824acdc0874e20c2afdf224c9a
2024-12-18 09:22:46 -06:00
4642545971 . 2024-12-18 09:22:38 -06:00
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
c05b6f931a Update "ConsultantProfilePipeline-Server" from "https://git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server.git@main"
git-vendor-name: ConsultantProfilePipeline-Server
git-vendor-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-vendor-repository: https://git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server.git
git-vendor-ref: main
2024-12-18 08:52:28 -06:00
3 changed files with 27 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ export PANDOC_TEMPLATE="eisvogel"
########################### ###########################
export YamlInputTemplateFileConsultantInfoSheet="$PipelineClientWorkingDir/build/BuildTemplate-ConsultantInfoSheet.yml" export YamlInputTemplateFileConsultantInfoSheet="$PipelineClientWorkingDir/build/BuildTemplate-ConsultantInfoSheet.yml"
export YamlInputTemplateFileConsultantProfile="$PipelineClientWorkingDir/build/BuildTemplate-ConsultantProfile.yml"
########################## ##########################
# Consultant info sheet # Consultant info sheet
@@ -68,3 +69,6 @@ export BUILD_OUTPUT_DIR="D:/tsys/ReachableCEOPublic/MarketingMaterials/websites/
export ConsultantInfoSheetMarkdownOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantInfoSheet.md" export ConsultantInfoSheetMarkdownOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantInfoSheet.md"
export ConsultantInfoSheetPDFOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantInfoSheet.pdf" export ConsultantInfoSheetPDFOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantInfoSheet.pdf"
export ConsultantProfileMarkdownOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantProfile.md"
export ConsultantProfilePDFOutputFile="$BUILD_OUTPUT_DIR/$PROFILE_FILE_NAME-ConsultantProfile.pdf"

View File

@@ -16,6 +16,7 @@ source ./ConsultantVariables.env
export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo" export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
export BUILD_TEMP_DIR="$PipelineClientWorkingDir/build-temp/ConsultantProfile" export BUILD_TEMP_DIR="$PipelineClientWorkingDir/build-temp/ConsultantProfile"
export BUILDYAML_CONSULTANT_INFOSHEET="$BUILD_TEMP_DIR/ConsultantInfoSheet.yml" export BUILDYAML_CONSULTANT_INFOSHEET="$BUILD_TEMP_DIR/ConsultantInfoSheet.yml"
export BUILDYAML_CONSULTANT_PROFILE="$BUILD_TEMP_DIR/ConsultantProfile.yml"
# Cleanup previous intermediatge and final output artifacts # Cleanup previous intermediatge and final output artifacts

View File

@@ -12,10 +12,9 @@ set -euo pipefail
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts # 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 $YamlInputTemplateFileConsultantInfoSheet > $BUILDYAML_CONSULTANT_INFOSHEET
echo "Creating candidate info sheet..."
$MO_PATH $PipelineClientWorkingDir/Templates/ConsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile" $MO_PATH $PipelineClientWorkingDir/Templates/ConsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile"
pandoc \ pandoc \
@@ -30,4 +29,22 @@ pandoc \
# Create the consultant profile PDF # Create the consultant profile PDF
############################################# #############################################
# Coming later echo "Creating consultant profile..."
$MO_PATH $YamlInputTemplateFileConsultantProfile > $BUILDYAML_CONSULTANT_PROFILE
#############################################################################
# Logic to create the consultant profile markdown output file goes here
# (...)
#############################################################################
$MO_PATH $PipelineClientWorkingDir/Templates/ConsultantInfoSheet.md > "$ConsultantProfileMarkdownOutputFile"
pandoc \
"$ConsultantProfileMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_CONSULTANT_PROFILE" \
--from markdown \
--to=pdf \
--output $ConsultantProfilePDFOutputFile