erick.is/Makefile

39 lines
648 B
Makefile

args :=
default: clean start
start:
docker compose up -d
rebuild:
docker compose up -d --build
stop:
docker compose down
clean:
\rm -rf .jekyll-cache .saas-cache _site _capsule
docker compose down -v
logs:
docker compose logs --follow --since 1m
build: build-jekyll build-gemini
build-gemini:
docker compose run --rm gemini
build-jekyll:
docker compose run --rm jekyll build
install:
docker compose run --rm --entrypoint bash jekyll -c bundle add ${args}
draft:
docker compose run --rm jekyll draft ${args}
publish:
docker compose run --rm jekyll publish ${args}
unpublish:
docker compose run --rm jekyll unpublish ${args}