diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64d91849837b23e8ccd161afa3ef95bfacc8c1ff..2bcafe54137d118a1c8980258e1eb8316daafa12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,6 @@ deploy: - curl -L -o - ${HUGO_TARBALL} | tar -zx -C ${HUGOTMP} - curl -L https://raw.githubusercontent.com/unlhcc/singularity-dockerfiles/master/IMAGELIST.md > static/markdown/singularity-images.md - ${HUGOTMP}/hugo --ignoreCache -b ${BASE_URL} -v - - pandoc -s content/facilities.md -o public/facilities.docx + - ./pandoc-build.sh - rsync -avz --delete public/ $DEPLOY_ROOT - rm -rf ${HUGOTMP} diff --git a/pandoc-build.sh b/pandoc-build.sh new file mode 100755 index 0000000000000000000000000000000000000000..c0c30b964e5eb84f7ea49d905782f6bb3d6e0c76 --- /dev/null +++ b/pandoc-build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Make the facilities document use Times New Roman, for NSF reasons + +# Create a pandoc document, and change the font +pushd ${HUGOTMP} +echo "hello world" | pandoc -o reference.docx +unzip -q reference.docx word/theme/theme1.xml +sed -i 's/Calibri/Times New Roman/' word/theme/theme1.xml +sed -i 's/Cambria/Times New Roman/' word/theme/theme1.xml +zip -q -r --move reference.docx word +popd + +pandoc --reference-doc=${HUGOTMP}/reference.docx -s content/facilities.md -o public/facilities.docx