From 3b34e0d0e0ee320fd12650bbecc1ac115bb41101 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Wed, 15 Dec 2021 12:40:25 +0100 Subject: [PATCH] convenient generation --- README.md | 4 ++++ makefile | 6 ++++++ 2 files changed, 10 insertions(+) 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