Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down