From 35ef956d08a4819b66e50d572ab75d393589f5e0 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Mon, 16 Mar 2026 13:03:03 -0700 Subject: [PATCH] `make build` auto reload changes --- Makefile | 3 ++- README.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1c958ee4..ea98d13f 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,8 @@ build: docker build -t $(IMAGE_NAME) https://github.com/apache/infrastructure-actions.git#main:pelican; \ fi docker run -it --rm -p8000:8000 -v $(PWD):/site --entrypoint /bin/bash $(IMAGE_NAME) -c \ - "pelicanasf content -o blog && python3 -m http.server 8000" + "pelicanasf content -o blog --autoreload & \ + python3 -m http.server 8000" # removes the Docker image clean: diff --git a/README.md b/README.md index 395d47ba..f41d55de 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ make This will build the site using the [`ASF-Pelican`](https://github.com/apache/infrastructure-actions/tree/main/pelican) docker container. Navigate in your web browser to [http://localhost:8000/blog](http://localhost:8000/blog) to view the live -website. In your terminal you can press Ctrl+C and rerun the last two commands -to rebuild and publish the site. +website. While `make` is running, changes under `content/` will automatically +trigger a rebuild. Refresh the browser to see the updated site. ## Publish site