russell.ballestrini.net/Makefile
Russell Ballestrini 776a4a07f4 Fix all Pelican build errors and implement proper testing workflow
- Setup virtual environment management in Makefile
- Fix broken linkpeek RST directives in 2011 posts
- Add missing image alt attributes for accessibility
- Fix RST syntax errors and title hierarchy
- Add markdown package for proper .md support
- Update CLAUDE.md with testing workflow and critical issues
- Rename code golf post to match slug
- Clean build: 182 articles, 4 pages, zero errors
2025-10-10 18:36:08 -04:00

46 lines
1.8 KiB
Makefile

BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py
help:
@echo 'Makefile for a pelican Web site '
@echo ' '
@echo 'Usage: '
@echo ' make venv setup virtual environment '
@echo ' make resume (re)generate the resume '
@echo ' make html (re)generate the web site '
@echo ' make clean remove the generated files '
@echo ' make regenerate regenerate files upon modification '
@echo ' make publish generate using production settings '
@echo ' make serve serve site at http://localhost:8000'
@echo ' make devserver serve and regenerate together '
@echo ' '
venv:
python3 -m venv venv
venv/bin/pip install -r requirements.txt
resume:
venv/bin/rst2pdf content/pages/russell.ballestrini.resume.rst --stylesheets content/pages/russell.ballestrini.resume.style -o output/uploads/russell.ballestrini.resume.pdf
html:
venv/bin/pelican content -o output -s pelicanconf.py
clean:
[ ! -d output ] || rm -rf output
regenerate:
venv/bin/pelican -r content -o output -s pelicanconf.py
serve:
venv/bin/pelican -l content -o output -s pelicanconf.py
devserver:
venv/bin/pelican -lr content -o output -s pelicanconf.py
publish:
venv/bin/pelican content -o output -s publishconf.py
.PHONY: html help clean regenerate serve devserver publish