summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-02-25 09:28:24 +0100
committerJonas Smedegaard <dr@jones.dk>2024-02-25 09:28:24 +0100
commitf39ada62a0f8c904f2d35339d6142331d5be588d (patch)
tree34b0c8992e0b84d38b5d9d6e3632dfe5b1aa73ca
parente0ca917a2043d4751bd3b22c29c888c8e0bde491 (diff)
cover events
-rw-r--r--Makefile18
-rw-r--r--_quarto.yml4
-rwxr-xr-xbin/cal-fetch.sh7
-rwxr-xr-xbin/cal-publish.sh21
-rw-r--r--events/.gitignore4
-rw-r--r--events/index.qmd29
6 files changed, 82 insertions, 1 deletions
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/).