From 1ba7d90633f9fcc078f052f43754528ce2970852 Mon Sep 17 00:00:00 2001 From: Eugene Leonovich Date: Mon, 22 Apr 2024 10:51:13 +0200 Subject: [PATCH] Enhance templates and PDF rendering --- .github/workflows/ci.yml | 2 +- Makefile | 10 +++++++--- profile.yml | 21 ++++++++++++--------- templates/cv.html | 19 ++++++++++++------- templates/cv.md | 14 ++++++++------ templates/pdf.override.tex | 24 +++++++++++++++--------- 6 files changed, 55 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18cd1ba..7e97a33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - name: Install Dependencies run: | sudo apt-get update - sudo apt-get install -y pandoc texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra + sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-fonts-extra pip install jinja2-cli - name: Generate CVs diff --git a/Makefile b/Makefile index ef87e42..52b9408 100644 --- a/Makefile +++ b/Makefile @@ -39,9 +39,13 @@ cv: | "$(output_dir)" cv-pdf cv-md cv-html .PHONY: cv-pdf cv-pdf: @jinja2 --strict "$(templates_dir)/pdf.override.tex" "$(root_dir)/profile.yml" > "$(root_dir)/.pdf.override.tex" && \ - jinja2 --strict "$(templates_dir)/cv.md" "$(root_dir)/profile.yml" | pandoc -o "$(output_dir)/$(CV_FILENAME).pdf" \ - --pdf-engine=pdflatex \ - --include-before-body="$(root_dir)/.pdf.override.tex" \ + jinja2 --strict "$(templates_dir)/cv.md" "$(root_dir)/profile.yml" | SOURCE_DATE_EPOCH=0 pandoc -o "$(output_dir)/$(CV_FILENAME).pdf" \ + --pdf-engine=xelatex \ + --include-in-header="$(root_dir)/.pdf.override.tex" \ + -V mainfont="DejaVu Serif" \ + -V sansfont="DejaVu Sans" \ + -V monofont="DejaVu Sans Mono" \ + -V documentclass:scrartcl \ -V geometry:a4paper \ -V geometry:margin=1cm \ -V colorlinks=true \ diff --git a/profile.yml b/profile.yml index 6790cbf..cd6b55e 100644 --- a/profile.yml +++ b/profile.yml @@ -1,6 +1,6 @@ --- full_name: Johnny Codemaster -location: Technolandia +location: Techville, Cybertopia summary: > Enthusiastic and innovative software developer with a knack for turning caffeine into code. Armed with a wizard's wand (keyboard) and a magical hat (headphones), I've crafted digital @@ -9,9 +9,9 @@ summary: > and challenges to turn into triumphs. contact_details: - Email: johnny@codemaster.me - GitHub: https://github.com/johnnycodemaster - LinkedIn: https://www.linkedin.com/in/johnnycodemaster + email: johnny@codemaster.me + github: https://github.com/johnnycodemaster + linkedin: https://www.linkedin.com/in/johnnycodemaster experience: - title: Senior Sorcerer @@ -107,13 +107,16 @@ training: skills: [PyroScript, ElixirCraft, HTML6, WizardJS, CharmSQL, Mystic Cloud Computing, AlchemyTensor, MageQuery] oss_projects: - - title: "SpellCheck.js: A magical library for error-free incantations in JavaScript" + - title: "SpellCheck.js" + description: A magical library for error-free incantations in JavaScript url: https://www.open-source.oss/johnnycodemaster/spellcheck.js - description: A handy library of regex sorcery for JavaScript magic without mishaps. - - title: "PotentCSS: Brew powerful stylesheets with ease using this CSS preprocessor" + note: A handy library of regex sorcery for JavaScript magic without mishaps. + - title: PotentCSS + description: Brew powerful stylesheets with ease using this CSS preprocessor url: https://www.open-source.oss/johnnycodemaster/potent.css - description: A magical potion brewed with ElixirCraft and Enchanted Sass for flawless page prestidigitation. - - title: "EnchantedUI: A collection of bewitching UI components for web enchanters" + note: A magical potion brewed with ElixirCraft and Enchanted Sass for flawless page prestidigitation. + - title: EnchantedUI + description: A collection of bewitching UI components for web enchanters url: https://www.open-source.oss/johnnycodemaster/enchanted.ui publications: diff --git a/templates/cv.html b/templates/cv.html index 05b193a..2d86ede 100644 --- a/templates/cv.html +++ b/templates/cv.html @@ -25,7 +25,7 @@ position: relative; top: -12px; } - + .light { color: #777; } @@ -39,9 +39,10 @@

{{ full_name }}

{{ location }}  |  - {%- for key, value in contact_details.items() %} - {{ key }}{% if not loop.last %} | {% endif %} - {% endfor %} + {{ contact_details.email }} | + GitHub | + LinkedIn +

Summary

{{ summary }} @@ -110,14 +111,18 @@

Open Source Projects

+

Publications