diff --git a/README.md b/README.md index 7031a62..8679b80 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ ### Generate `lumbung[dot]space` posts +Do this manually first: + ``` mkdir -p content python3 -m venv .venv && source .venv/bin/activate @@ -27,3 +29,5 @@ lumbunglib-cal export OUTPUT_DIR=content/video lumbunglib-vid ``` + +Afterwards, you can automatically run it with `make gen`. diff --git a/makefile b/makefile index 184625a..ac5aaed 100644 --- a/makefile +++ b/makefile @@ -3,4 +3,10 @@ DEFAULT: serve serve: @hugo serve +gen: + @CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"; \ + OUTPUT_DIR=content/calendar; \ + lumbunglib-cal && \ + OUTPUT_DIR=content/video lumbunglib-vid + .PHONY: serve