Compare commits
5 Commits
92564021cf
...
dd5182bd46
Author | SHA1 | Date | |
---|---|---|---|
dd5182bd46 | |||
235428c542 | |||
4642545971 | |||
3bbac23e1d | |||
c05b6f931a |
@@ -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
|
||||||
@@ -67,4 +68,7 @@ export PROFILE_FILE_NAME="$(echo $ConsultantName|sed 's/ //g')"
|
|||||||
export BUILD_OUTPUT_DIR="D:/tsys/ReachableCEOPublic/MarketingMaterials/websites/profile-consulting.reachableceo.com/ConsultantProfile"
|
export BUILD_OUTPUT_DIR="D:/tsys/ReachableCEOPublic/MarketingMaterials/websites/profile-consulting.reachableceo.com/ConsultantProfile"
|
||||||
|
|
||||||
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"
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
Reference in New Issue
Block a user