Serve styled resume version 17 from portfolio

This commit is contained in:
StormRunner06106
2026-09-28 06:01:22 -07:00
parent 411e5bd3bd
commit 6be03f3cea
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -15,6 +15,6 @@ backend/seed_*.py
backend/connect_dropbox.py backend/connect_dropbox.py
backend/migrate_media_dropbox.py backend/migrate_media_dropbox.py
resumes/* resumes/*
!resumes/resume-v18.pdf !resumes/resume-v17.pdf
Alexander Herlan Resume 2024.md Alexander Herlan Resume 2024.md
Alexander Herlan Resume 2024.pdf Alexander Herlan Resume 2024.pdf
+8 -8
View File
@@ -24,13 +24,13 @@ resumes/ Matching HTML/PDF files for each generated version
The standalone generator reads `Alexander Herlan Resume 2024.md`, creates a self-contained HTML document, and prints that exact HTML to PDF using Python Playwright. The template and CSS are in `scripts/generate_resume.py`. The default `--layout original` retains the sidebar design with left-column section labels, right-column content, Letter pages, and green header accents. Section starts use normal-flow grid layout to preserve the PDF text reading order. Use `--layout ats` for the optional single-column layout. Both layouts use the same Markdown and local Raleway/Lato fonts when available, with Arial as a fallback. The original PDF is only a design reference, and is not needed to run the generator. The standalone generator reads `Alexander Herlan Resume 2024.md`, creates a self-contained HTML document, and prints that exact HTML to PDF using Python Playwright. The template and CSS are in `scripts/generate_resume.py`. The default `--layout original` retains the sidebar design with left-column section labels, right-column content, Letter pages, and green header accents. Section starts use normal-flow grid layout to preserve the PDF text reading order. Use `--layout ats` for the optional single-column layout. Both layouts use the same Markdown and local Raleway/Lato fonts when available, with Arial as a fallback. The original PDF is only a design reference, and is not needed to run the generator.
**Selected website resume: version 18.** `/api/resume` serves **Selected website resume: version 17.** The portfolio's **Open CV** link uses
`resumes/resume-v18.pdf` as `Alexander-Herlan-Resume-v18.pdf`. Version 18 uses `/api/resume`, which serves the styled `resumes/resume-v17.pdf` as
version 16's classic single-column format, with separate role, employer, location, `Alexander-Herlan-Resume-v17.pdf`. Its source is `resumes/resume-v17.md`, with
and date lines, plain project bullets, and the corrected `alexherlandev@gmail.com` the corrected `alexherlandev@gmail.com` email and matching HTML/PDF files. Both
email. Its source is `resumes/resume-v18.md`; matching HTML, PDF, and Word files deployment configurations include the version 17 PDF. Version 18 remains the
are saved alongside it. Version 17 remains the styled alternative. Both classic alternative in version 16's single-column format, with Markdown, HTML,
deployment configurations include the version 18 PDF. PDF, and Word files saved under `resumes/resume-v18.*`.
Generate future classic versions with Generate future classic versions with
`.venv/Scripts/python.exe scripts/generate_resume.py resumes/resume-v18.md --layout autofill --docx`. `.venv/Scripts/python.exe scripts/generate_resume.py resumes/resume-v18.md --layout autofill --docx`.
@@ -262,7 +262,7 @@ npx.cmd vercel --prod
After deployment, check `/`, a direct link such as `/experience`, After deployment, check `/`, a direct link such as `/experience`,
`/api/health`, `/api/posts`, and `/api/resume`. Check admin sign-in and upload a `/api/health`, `/api/posts`, and `/api/resume`. Check admin sign-in and upload a
small file before publishing new content. The project retains the selected small file before publishing new content. The project retains the selected
`resumes/resume-v18.pdf`; local secrets, upload backups, and draft resumes are `resumes/resume-v17.pdf`; local secrets, upload backups, and draft resumes are
excluded from deployment by `.vercelignore`. excluded from deployment by `.vercelignore`.
Vercel uploads are limited to **4 MB per file** in both the UI and API, below Vercel uploads are limited to **4 MB per file** in both the UI and API, below
+2 -2
View File
@@ -35,7 +35,7 @@ PROJECT_DIR = BASE_DIR.parent
DATA_DIR = BASE_DIR / "data" DATA_DIR = BASE_DIR / "data"
FRONTEND_DIST = PROJECT_DIR / "frontend" / "dist" FRONTEND_DIST = PROJECT_DIR / "frontend" / "dist"
# Pin the website to the selected resume; generating a draft must not publish it. # Pin the website to the selected resume; generating a draft must not publish it.
RESUME_PATH = PROJECT_DIR / "resumes" / "resume-v18.pdf" RESUME_PATH = PROJECT_DIR / "resumes" / "resume-v17.pdf"
POSTS_PATH = DATA_DIR / "posts.json" POSTS_PATH = DATA_DIR / "posts.json"
POSTS_LOCK = threading.Lock() POSTS_LOCK = threading.Lock()
ADMIN_TOKEN_TTL = 60 * 60 * 4 ADMIN_TOKEN_TTL = 60 * 60 * 4
@@ -620,7 +620,7 @@ def resume() -> FileResponse:
return FileResponse( return FileResponse(
RESUME_PATH, RESUME_PATH,
media_type="application/pdf", media_type="application/pdf",
filename="Alexander-Herlan-Resume-v18.pdf", filename="Alexander-Herlan-Resume-v17.pdf",
content_disposition_type="inline", content_disposition_type="inline",
) )
+1 -1
View File
@@ -7,7 +7,7 @@
"functions": { "functions": {
"api/index.py": { "api/index.py": {
"maxDuration": 60, "maxDuration": 60,
"includeFiles": "{backend/**,resumes/resume-v18.pdf}", "includeFiles": "{backend/**,resumes/resume-v17.pdf}",
"excludeFiles": "{frontend/**,node_modules/**,.venv/**,scripts/**,backend/test_*.py,backend/.env*,backend/data/uploads/**}" "excludeFiles": "{frontend/**,node_modules/**,.venv/**,scripts/**,backend/test_*.py,backend/.env*,backend/data/uploads/**}"
} }
}, },