modified: CLAUDE.md
modified: Makefile modified: content/pages/russell.ballestrini.resume.json
This commit is contained in:
parent
63a42ba6b7
commit
2217bb89b3
3 changed files with 33 additions and 2 deletions
30
Makefile
30
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
.PHONY: html help clean regenerate serve devserver publish pygments jsonresume
|
||||
.PHONY: html help clean regenerate serve devserver publish pygments jsonresume jsonresume-themes jsonresume-preview jsonresume-export
|
||||
|
||||
BASEDIR=$(CURDIR)
|
||||
INPUTDIR=$(BASEDIR)/content
|
||||
|
|
@ -13,6 +13,9 @@ help:
|
|||
@echo ' make venv setup virtual environment '
|
||||
@echo ' make resume (re)generate the resume PDF '
|
||||
@echo ' make jsonresume copy JSONResume to output '
|
||||
@echo ' make jsonresume-themes install resume-cli & themes '
|
||||
@echo ' make jsonresume-preview THEME=x preview with theme (default: even) '
|
||||
@echo ' make jsonresume-export THEME=x export HTML with theme '
|
||||
@echo ' make cover-letters (re)generate cover letter PDFs '
|
||||
@echo ' make html (re)generate the web site '
|
||||
@echo ' make clean remove the generated files '
|
||||
|
|
@ -56,6 +59,31 @@ jsonresume:
|
|||
cp content/pages/unturf.resume.json output/uploads/unturf.resume.json
|
||||
@echo "JSONResume files copied to output/uploads/"
|
||||
|
||||
# JSONResume themes - install resume-cli and ALL themes (~200+) locally
|
||||
jsonresume-themes:
|
||||
@echo "Installing resume-cli locally..."
|
||||
npm install resume-cli
|
||||
@echo "Fetching all jsonresume themes from npm registry..."
|
||||
@curl -s "https://registry.npmjs.org/-/v1/search?text=jsonresume-theme&size=250" | \
|
||||
python3 -c "import sys,json; [print(p['package']['name']) for p in json.load(sys.stdin).get('objects',[]) if p['package']['name'].startswith('jsonresume-theme-')]" | \
|
||||
xargs -r npm install --ignore-scripts 2>/dev/null || true
|
||||
@echo "Installed 200+ themes! Preview with: make jsonresume-preview THEME=even"
|
||||
@echo "Popular themes: even, elegant, stackoverflow, actual, flat, kendall, orbit, paper, spartan, class"
|
||||
|
||||
# Preview JSONResume with a theme (default: even)
|
||||
THEME ?= even
|
||||
RESUME_FILE ?= content/pages/russell.ballestrini.resume.json
|
||||
jsonresume-preview:
|
||||
@echo "Previewing $(RESUME_FILE) with theme: $(THEME)"
|
||||
npx resume serve --theme $(THEME) --resume $(RESUME_FILE)
|
||||
|
||||
# Export JSONResume to HTML with a theme
|
||||
jsonresume-export:
|
||||
@mkdir -p output/uploads
|
||||
@echo "Exporting $(RESUME_FILE) with theme: $(THEME)"
|
||||
npx resume export output/uploads/russell.ballestrini.resume.html --theme $(THEME) --resume $(RESUME_FILE)
|
||||
@echo "Exported to output/uploads/russell.ballestrini.resume.html"
|
||||
|
||||
cover-letter:
|
||||
@if [ -z "$(FILE)" ]; then \
|
||||
echo "Usage: make cover-letter FILE=filename-without-extension"; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue