diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21d0b89 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv/ diff --git a/CLAUDE.md b/CLAUDE.md index 0e5bc0e..0a0716b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,7 +10,9 @@ The resume is authored in Markdown and compiled to HTML with pandoc: bash build.sh ``` -This builds `paul_trowbridge.md` → `site/pt.html` and `work.md` → `site/work.html` with pandoc, and copies `styles.css` into `site/`. +This builds `paul_trowbridge.md` → `site/pt.html` and `work.md` → `site/work.html` with pandoc, and copies `styles.css` into `site/` and `img/`, then renders `site/Paul_Trowbridge_Resume.pdf` from `site/pt.html` with WeasyPrint (the `@media print` / `@page` rules in `styles.css` control it: US Letter, two pages, footer with page numbers). + +PDF prerequisites (one-time, no sudo): `python3 -m venv .venv && .venv/bin/pip install weasyprint` (`.venv/` is gitignored), and the Carlito font — metric-compatible with Calibri — in `~/.fonts`. Without Carlito the PDF falls back to a wider font and may spill onto a third page. After content changes, check the PDF is still two pages. `site/` is the public web root (nginx serves it at https://hptrow.me/) — only built output belongs there, so the repo itself is never served. Do not edit files in `site/` directly. All content changes go in `paul_trowbridge.md` (resume) or `work.md` (portfolio page). diff --git a/build.sh b/build.sh index f15c02d..51f5540 100755 --- a/build.sh +++ b/build.sh @@ -7,3 +7,6 @@ pandoc paul_trowbridge.md -o site/pt.html --css styles.css --standalone pandoc work.md -o site/work.html --css styles.css --standalone cp styles.css site/ cp -r img site/ + +# printable PDF (WeasyPrint in .venv, Carlito font in ~/.fonts stands in for Calibri) +.venv/bin/weasyprint -q site/pt.html site/Paul_Trowbridge_Resume.pdf diff --git a/paul_trowbridge.md b/paul_trowbridge.md index de84276..a932811 100644 --- a/paul_trowbridge.md +++ b/paul_trowbridge.md @@ -1,10 +1,11 @@ --- pagetitle: Paul Trowbridge — Resume +author: Paul Trowbridge --- # Paul Trowbridge -**FP&A & Finance Transformation Leader** -Stow, Ohio • 330.819.3826 • paul.hptrow@gmail.com • [hptrow.me](https://hptrow.me) +**FP&A & Finance Transformation Leader**\ +Stow, Ohio • 330.819.3826 • paul.hptrow@gmail.com • [hptrow.me](https://hptrow.me)[ • [PDF](Paul_Trowbridge_Resume.pdf)]{.no-print} --- diff --git a/site/Paul_Trowbridge_Resume.pdf b/site/Paul_Trowbridge_Resume.pdf new file mode 100644 index 0000000..5bf68aa Binary files /dev/null and b/site/Paul_Trowbridge_Resume.pdf differ diff --git a/site/pt.html b/site/pt.html index d373168..1d88e98 100644 --- a/site/pt.html +++ b/site/pt.html @@ -4,6 +4,7 @@ + Paul Trowbridge — Resume