diff options
| -rw-r--r-- | emacsconf-publish.el | 41 |
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) |
