- WeasyPrint renders site/Paul_Trowbridge_Resume.pdf from the print styles - Print CSS: US Letter, two pages, one rule per section, footer with contact info and page numbers, bullets never split across pages - Header: tagline on its own line, screen-only PDF link, author metadata Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.3 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Build
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/ 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).
Architecture
Source files:
paul_trowbridge.md— source of truth for all resume content. Uses YAML front matter (pagetitle) for the<title>tag. Section structure: Professional Summary → Professional Experience (reverse chronological) → Education → Infrastructure & Tools.styles.css— custom stylesheet. CSS variables at:rootcontrol the color palette (blues + grays). Sections useh1/h2/h3hierarchy generated by pandoc. Includes print media query (@media print) tuned for clean PDF output.work.md— portfolio / case-study page (site/work.html). Blocked in nginx until ready to publish.site/pt.html— pandoc-generated output. The stylesheet is embedded as a<link>tag; pandoc injects its own minimal inline styles alongside it.
The css/ directory contains older stylesheets (markdown.css, highlight.css, etc.) from a prior pandoc approach — these are no longer used. flavor.css is also unused.
Workflow
Edit paul_trowbridge.md, then run bash build.sh to regenerate site/. The HTML renders in a browser; print or export to PDF directly from the browser using the print styles in styles.css.