An interactive CV at christophermorse.github.io: a year selected on an astrolabe shows that year's work. A PDF edition is built from the same data.
| Path | Purpose |
|---|---|
cv.yaml |
CV content; the single source of truth |
scripts/build_site.py |
Generates the website into _site/ |
scripts/build_cv.py |
Generates the PDF through headless Chrome |
scripts/cv_common.py |
YAML loading and date handling shared by both |
site/ |
Website template, styles and script; PDF layout |
tests/ |
Unit tests |
pip install -r requirements.txt
python scripts/build_site.py # writes _site/index.html
python scripts/build_cv.py # writes Christopher_Morse_CV.pdfThe PDF build needs Chrome or Chromium, and network access for the web fonts. Contact details are
read from cv.private.yaml, which is not committed; the PDF that contains them is gitignored.
# cv.private.yaml
person:
email: name@example.comFor a PDF tailored to one application, write a variant file in variants/ (gitignored) that picks
sections, keeps only the entries named, and rewrites fields, then build it with
python scripts/build_cv.py --variant variants/<name>.yaml. cv.yaml and the site are untouched.
The portfolio page (/portfolio/) is built from portfolio.yaml, with its pictures and videos in
assets/portfolio/. It is published only while publish: true; with publish: false it is built only by
python scripts/build_site.py --drafts, which also shows the "To fill in" notes for previewing locally.
Run the tests with pip install -r requirements-dev.txt && pytest.
Pushing to master builds the site and publishes it to GitHub Pages
(.github/workflows/pages.yml).