From 02ec9055ce6aadfa0050b119bd9a18f8273dc392 Mon Sep 17 00:00:00 2001 From: tuxmain Date: Fri, 5 Aug 2022 18:48:59 +0200 Subject: [PATCH] Initial commit --- .gitignore | 4 ++++ README.md | 3 +++ scripts/update-calendar.sh | 3 +++ statical/statical.toml | 8 +++++++ statical/templates/agenda.html | 39 ++++++++++++++++++++++++++++++++++ 5 files changed, 57 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 scripts/update-calendar.sh create mode 100644 statical/statical.toml create mode 100644 statical/templates/agenda.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5675eff --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/statical/output/agenda/* +/statical/output/day/* +/statical/output/month/* +/statical/output/week/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f50a34 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +Ce dépôt contient certaines sources utilisées pour [le site des Dubitaristes Girondins](https://dubitaristes.fr). + +* [`statical`](https://github.com/egrieco/statical): rendu HTML de calendrier ICS diff --git a/scripts/update-calendar.sh b/scripts/update-calendar.sh new file mode 100644 index 0000000..00d8a15 --- /dev/null +++ b/scripts/update-calendar.sh @@ -0,0 +1,3 @@ +#cd statical && statical -f /home/tuxmain/Téléchargements/foo.ics +#cd statical && statical -f /home/tuxmain/Téléchargements/dubi.ics +cd statical && statical -u https://mobilizon.cloud-libre.eu/@dubitaristes/feed/ics diff --git a/statical/statical.toml b/statical/statical.toml new file mode 100644 index 0000000..78d6725 --- /dev/null +++ b/statical/statical.toml @@ -0,0 +1,8 @@ +render_agenda = true +render_day = false +render_month = false +render_week = false +output_dir = "output" +display_timezone = "EET" +agenda_events_per_page = 5 +agenda_start_date = "" diff --git a/statical/templates/agenda.html b/statical/templates/agenda.html new file mode 100644 index 0000000..d8a1afa --- /dev/null +++ b/statical/templates/agenda.html @@ -0,0 +1,39 @@ + + +
+ Prochains événements + + ➤ Tous les événements + 🗓 +
+