Dev #1
+1
-1
@@ -15,6 +15,6 @@ backend/seed_*.py
|
||||
backend/connect_dropbox.py
|
||||
backend/migrate_media_dropbox.py
|
||||
resumes/*
|
||||
!resumes/resume-v18.pdf
|
||||
!resumes/resume-v17.pdf
|
||||
Alexander Herlan Resume 2024.md
|
||||
Alexander Herlan Resume 2024.pdf
|
||||
|
||||
@@ -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.
|
||||
|
||||
**Selected website resume: version 18.** `/api/resume` serves
|
||||
`resumes/resume-v18.pdf` as `Alexander-Herlan-Resume-v18.pdf`. Version 18 uses
|
||||
version 16's classic single-column format, with separate role, employer, location,
|
||||
and date lines, plain project bullets, and the corrected `alexherlandev@gmail.com`
|
||||
email. Its source is `resumes/resume-v18.md`; matching HTML, PDF, and Word files
|
||||
are saved alongside it. Version 17 remains the styled alternative. Both
|
||||
deployment configurations include the version 18 PDF.
|
||||
**Selected website resume: version 17.** The portfolio's **Open CV** link uses
|
||||
`/api/resume`, which serves the styled `resumes/resume-v17.pdf` as
|
||||
`Alexander-Herlan-Resume-v17.pdf`. Its source is `resumes/resume-v17.md`, with
|
||||
the corrected `alexherlandev@gmail.com` email and matching HTML/PDF files. Both
|
||||
deployment configurations include the version 17 PDF. Version 18 remains the
|
||||
classic alternative in version 16's single-column format, with Markdown, HTML,
|
||||
PDF, and Word files saved under `resumes/resume-v18.*`.
|
||||
|
||||
Generate future classic versions with
|
||||
`.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`,
|
||||
`/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
|
||||
`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`.
|
||||
|
||||
Vercel uploads are limited to **4 MB per file** in both the UI and API, below
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@ PROJECT_DIR = BASE_DIR.parent
|
||||
DATA_DIR = BASE_DIR / "data"
|
||||
FRONTEND_DIST = PROJECT_DIR / "frontend" / "dist"
|
||||
# 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_LOCK = threading.Lock()
|
||||
ADMIN_TOKEN_TTL = 60 * 60 * 4
|
||||
@@ -620,7 +620,7 @@ def resume() -> FileResponse:
|
||||
return FileResponse(
|
||||
RESUME_PATH,
|
||||
media_type="application/pdf",
|
||||
filename="Alexander-Herlan-Resume-v18.pdf",
|
||||
filename="Alexander-Herlan-Resume-v17.pdf",
|
||||
content_disposition_type="inline",
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
"functions": {
|
||||
"api/index.py": {
|
||||
"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/**}"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user