summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2026-11-29 20:42:18 -0500
committerSacha Chua <sacha@sachachua.com>2026-11-29 20:42:18 -0500
commitfc01438e696db62663e20af17864d0e69d772320 (patch)
tree4845b618f1846b574f88d8e653a59b21b325ab52
parent304ea12e5a75a803790c796ec0ffa1ff881daeca (diff)
downloademacsconf-el-fc01438e696db62663e20af17864d0e69d772320.tar.xz
emacsconf-el-fc01438e696db62663e20af17864d0e69d772320.zip
ical and google calendar links
-rw-r--r--emacsconf-publish.el41
1 files changed, 41 insertions, 0 deletions
diff --git a/emacsconf-publish.el b/emacsconf-publish.el
index 9df1f9d..5f896a2 100644
--- a/emacsconf-publish.el
+++ b/emacsconf-publish.el
@@ -438,6 +438,47 @@
(insert result))))
emacsconf-tracks)))
+(defun emacsconf-publish-ical-link (talk)
+ "Format a data URI ical for TALK."
+ (require 'emacsconf-ical)
+ (concat "data:text/calendar," (url-hexify-string (emacsconf-ical-convert-entry-to-string nil talk))))
+
+(defun emacsconf-publish-google-calendar-link (talk)
+ "Format Google Calendar link for TALK."
+ (format "https://calendar.google.com/calendar/render?action=TEMPLATE&text=%s&details=%s&dates=%s/%s&ctz=%s"
+ (url-hexify-string
+ (format "%s - %s %s"
+ (plist-get talk :title)
+ emacsconf-name
+ emacsconf-year))
+ (url-hexify-string
+ (concat
+ (pcase (plist-get talk :qa-type)
+ ("live"
+ (format "Q&A: BigBlueButton - %s\n"
+ (if (plist-get talk :backstage)
+ (concat "private link with modcode: "
+ (emacsconf-backstage-url
+ nil
+ (plist-get talk :bbb-backstage)))
+ (plist-get talk :bbb-redirect))))
+ ("pad"
+ "Q&A: Etherpad\n")
+ ("irc"
+ (format "Q&A: #%s\n%s or your favorite IRC client\n"
+ (plist-get talk :channel)
+ (plist-get talk :webchat-url)))
+ ("email"
+ "Q&A: Questions will be e-mailed to the speaker after the event\n")
+ (_ ""))
+ (format "Etherpad: %s\n"
+ (plist-get talk :pad-url))
+ (format "Talk page: %s\n"
+ (plist-get talk :absolute-url))))
+ (format-time-string "%Y%m%dT%H%M%S" (plist-get talk :start-time))
+ (format-time-string "%Y%m%dT%H%M%S" (plist-get talk :end-time))
+ emacsconf-timezone))
+
(defun emacsconf-publish-index-card-video (video-id video-file talk)
(let* ((video-base (and (stringp video-file) (replace-regexp-in-string "reencoded\\|original" "main" (file-name-base video-file))))
(chapter-info (and (stringp video-file)