From f39ada62a0f8c904f2d35339d6142331d5be588d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 25 Feb 2024 09:28:24 +0100 Subject: cover events --- Makefile | 18 +++++++++++++++++- _quarto.yml | 4 ++++ bin/cal-fetch.sh | 7 +++++++ bin/cal-publish.sh | 21 +++++++++++++++++++++ events/.gitignore | 4 ++++ events/index.qmd | 29 +++++++++++++++++++++++++++++ 6 files changed, 82 insertions(+), 1 deletion(-) create mode 100755 bin/cal-fetch.sh create mode 100755 bin/cal-publish.sh create mode 100644 events/.gitignore create mode 100644 events/index.qmd diff --git a/Makefile b/Makefile index beaa1f7..b5d6674 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +SSH_HOST = www-ruc@xayide.jones.dk +SSH_BASE_PATH = public_websites/thoughtroam.abcde.../ + +BASE_SSH = $(SSH_HOST):$(SSH_BASE_PATH) BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/ ARTICLES = learn code use @@ -11,7 +15,19 @@ render: quarto render publish: - rsync -avH --delete-after _site/ www-ruc@xayide.jones.dk:public_websites/thoughtroam.abcde.../ + rsync -avH --delete-after _site/ $(BASE_SSH) + +cal-all: cal-fetch cal-render cal-publish + +cal-fetch: + bin/cal-fetch.sh + +cal-render: + bin/cal-publish.sh + +cal-publish: + ssh $(SSH_HOST) mkdir -p $(SSH_BASE_PATH)events/ + rsync -avH --delete-after $(patsubst %,events/%,$(ARTICLES) superteam) $(BASE_SSH)events/ tidy: bibclean -max-width 0 ref.bib > ref.bib~ diff --git a/_quarto.yml b/_quarto.yml index f35ae9f..8cb0938 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -23,6 +23,8 @@ website: href: use/index.qmd - text: Planer href: plans/index.qmd + - text: Begivenheder + href: events/index.qmd - text: Redskaber href: tools/index.qmd @@ -60,4 +62,6 @@ filters: - diagram resources: + - "events/*/*.ics" + - "events/*/index.html" - fonts diff --git a/bin/cal-fetch.sh b/bin/cal-fetch.sh new file mode 100755 index 0000000..d6c91a4 --- /dev/null +++ b/bin/cal-fetch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Depends: vdirsyncer + +set -eu + +vdirsyncer sync jonas_calendar/_ruc_thoughtroam jonas_calendar/_ruc_thoughtroam-learn jonas_calendar/_ruc_thoughtroam-code jonas_calendar/_ruc_thoughtroam-use diff --git a/bin/cal-publish.sh b/bin/cal-publish.sh new file mode 100755 index 0000000..7d541ee --- /dev/null +++ b/bin/cal-publish.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Depends: ical2html + +set -eu + +STARTDATE=$(date --date "1 week ago" +%Y%m%d) + +OUTDIR=events + +mkdir --parents "$OUTDIR/learn" "$OUTDIR/code" "$OUTDIR/use" "$OUTDIR/superteam" + +#icalmerge ~/.calendars/_ruc_thoughtroam-learn/*.ics "$OUTDIR"/learn/learn.ics +icalmerge ~/.calendars/_ruc_thoughtroam-code/*.ics "$OUTDIR"/code/code.ics +#icalmerge ~/.calendars/_ruc_thoughtroam-use/*.ics "$OUTDIR"/use/use.ics +icalmerge ~/.calendars/_ruc_thoughtroam/*.ics "$OUTDIR"/superteam/superteam.ics + +#ical2html --monday --title "RUC HumTek-23 Thoughtroam kode" "$STARTDATE" P40D "$OUTDIR"/learn/learn.ics > "$OUTDIR"/learn/index.html +ical2html --monday --title "RUC HumTek-23 Thoughtroam læring" "$STARTDATE" P40D "$OUTDIR"/code/code.ics > "$OUTDIR"/code/index.html +#ical2html --monday --title "RUC HumTek-23 Thoughtroam brug" "$STARTDATE" P40D "$OUTDIR"/use/use.ics > "$OUTDIR"/use/index.html +ical2html --monday --title "RUC HumTek-23 Thoughtroam fælles" "$STARTDATE" P40D "$OUTDIR"/superteam/superteam.ics > "$OUTDIR"/superteam/index.html diff --git a/events/.gitignore b/events/.gitignore new file mode 100644 index 0000000..90cbd9b --- /dev/null +++ b/events/.gitignore @@ -0,0 +1,4 @@ +/code/ +/learn/ +/superteam/ +/use/ diff --git a/events/index.qmd b/events/index.qmd new file mode 100644 index 0000000..03a5568 --- /dev/null +++ b/events/index.qmd @@ -0,0 +1,29 @@ +--- +title: "Begivenheder" +format: + html: default +--- +Du kan se kalendre direkte som **webside**, +og abonnere på dem med **webcal** protokollen. + +Fælles: +[Webside](superteam/) +[webcal](webcal://play.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/events/superteam/superteam.ics) - +begivenheder i supergruppen. + +Sproget: +[Webside](learn/) +[webcal](webcal://play.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/events/learn/learn.ics) - +begivenheder i læringsgruppen. + +Redskaber: +[Webside](code/) +[webcal](webcal://play.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/events/code/code.ics) - +begivenheder i kodegruppen. + +Anvendelser: +[Webside](use/) +[webcal](webcal://play.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/events/use/use.ics) - +begivenheder i brugsgruppen. + +Se også [holdkalendre](https://play.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/events/). -- cgit v1.2.3