summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-17 17:45:19 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-17 17:45:19 -0400
commit016e48cfd3146ed32c55ce331d880d01cf5af802 (patch)
treea9b60a0e1e9437f5c03a2960b1a4f5e025d0e0f5
parentca7e367a5219af1dce4c8aea1bf2c2fc7a65e545 (diff)
downloademacsconf-el-016e48cfd3146ed32c55ce331d880d01cf5af802.tar.xz
emacsconf-el-016e48cfd3146ed32c55ce331d880d01cf5af802.zip
Add link to main pad
Diffstat (limited to '')
-rw-r--r--emacsconf-pad.el50
-rw-r--r--emacsconf-publish.el76
2 files changed, 88 insertions, 38 deletions
diff --git a/emacsconf-pad.el b/emacsconf-pad.el
index 2c88ef8..dd00802 100644
--- a/emacsconf-pad.el
+++ b/emacsconf-pad.el
@@ -136,9 +136,14 @@ You can find it in $ETHERPAD_PATH/APIKEY.txt"
(append (list :base-url emacsconf-base-url
:channel (concat "emacsconf-" (plist-get (emacsconf-get-track (plist-get o :track)) :id))
:bbb-info
- (if (plist-get o :bbb-room)
- (concat "<div>Q&amp;A room: ${bbb-room}</div>")
- "")
+ (cond
+ ((plist-get o :bbb-room)
+ (concat "<div>Q&amp;A room: ${bbb-room}</div>"))
+ ((null (plist-get o :q-and-a))
+ "<div>Q&amp;A: none</div>")
+ ((string-match "live" (plist-get o :q-and-a))
+ "<div>Q&amp;A room: to be announced</div>")
+ (t "<div>Q&amp;A: IRC</div>"))
:next-talk-list
(if (plist-get o :next-talks)
(concat "<div>Next talks:\n<ul>"
@@ -162,6 +167,8 @@ You can find it in $ETHERPAD_PATH/APIKEY.txt"
(string-join (make-list 6 "<li></li>"))
:questions
(string-join (make-list 6 "<li>Q: <ul><li>A: </li></ul></li>"))
+ :conf-pad-url
+ (concat "https://pad.emacsconf.org/" emacsconf-year)
:irc-nick-details
(if (plist-get o :irc)
(concat "Speaker nick: " (plist-get o :irc) " - ")
@@ -174,23 +181,54 @@ You can find it in $ETHERPAD_PATH/APIKEY.txt"
<div>${base-url}${url} - ${speakers} - Track: ${track}</div>
${bbb-info}
<div>Watch/participate: ${watch}</div>
-<div>IRC: ${irc-nick-details} https://chat.emacsconf.org/#/connect?join=emacsconf-${track-id} or #emacsconf-${track-id} on libera.chat network</div>
+<div>IRC: ${irc-nick-details} https://chat.emacsconf.org/#/connect?join=emacsconf,emacsconf-${track-id} or #emacsconf-${track-id} on libera.chat network</div>
<div>Guidelines for conduct: ${base-url}conduct</div>
<div>See end of file for license (CC Attribution-ShareAlike 4.0 + GPLv3 or later)</div>
<div>----------------------------------------------------------------</div>
-<div>Notes and links:</div>
+<div>Notes, discussions, links, feedback:</div>
<ul>${notes}</ul>
<div>----------------------------------------------------------------</div>
-<div>Questions and discussion go here:</div>
+<div>Questions and answers go here:</div>
<ul>${questions}</ul>
<div>----------------------------------------------------------------</div>
${next-talk-list}
+<div>Questions/comments related to EmacsConf ${year} as a whole? ${conf-pad-url}
<div>----------------------------------------------------------------</div>
<div>This pad will be archived at ${base-url}${url} after the conference.</div>
<div>Except where otherwise noted, the material on the EmacsConf pad are dual-licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International Public License; and the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an later version. Copies of these two licenses are included in the EmacsConf wiki repository, in the COPYING.GPL and COPYING.CC-BY-SA files (https://emacsconf.org/COPYING/)</div>
<div>By contributing to this pad, you agree to make your contributions available under the above licenses. You are also promising that you are the author of your changes, or that you copied them from a work in the public domain or a work released under a free license that is compatible with the above two licenses. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION.</div></div>"))
+(defun emacsconf-pad-prepopulate-main-pad ()
+ (interactive)
+ (let ((pad-id emacsconf-year))
+ (emacsconf-pad-create-pad pad-id)
+ (emacsconf-pad-set-html
+ pad-id
+ (emacsconf-replace-plist-in-string
+ (list
+ :base-url emacsconf-base-url
+ :notes (string-join (make-list 6 "<li></li>"))
+ :questions
+ (string-join (make-list 6 "<li>Q: <ul><li>A: </li></ul></li>"))
+ :year emacsconf-year)
+ "<div><strong>EmacsConf ${year}</strong> - this pad is for general conference-related questions and feedback</div>
+<div>All talks: ${base-url}${year}/talks - see specific talk pages for links to their Etherpads</div>
+<div>Conference hallway IRC channel: https://chat.emacsconf.org/#/connect?join=emacsconf or #emacsconf on libera.chat network</div>
+<div>Organizers channel: https://chat.emacsconf.org/#/connect?join=emacsconf,emacsconf-org or #emacsconf-org on libera.chat network</div>
+<div>Guidelines for conduct: ${base-url}conduct</div>
+<div>See end of file for license (CC Attribution-ShareAlike 4.0 + GPLv3 or later)</div>
+<div>----------------------------------------------------------------</div>
+<div>Notes, discussions, links, feedback: </div>
+<ul>${notes}</ul>
+<div>----------------------------------------------------------------</div>
+<div>Questions and answers go here:</div>
+<ul>${questions}</ul>
+<div>----------------------------------------------------------------</div>
+<div>This pad will be archived at ${base-url}${url} after the conference.</div>
+<div>Except where otherwise noted, the material on the EmacsConf pad are dual-licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International Public License; and the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an later version. Copies of these two licenses are included in the EmacsConf wiki repository, in the COPYING.GPL and COPYING.CC-BY-SA files (https://emacsconf.org/COPYING/)</div>
+
+<div>By contributing to this pad, you agree to make your contributions available under the above licenses. You are also promising that you are the author of your changes, or that you copied them from a work in the public domain or a work released under a free license that is compatible with the above two licenses. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION.</div></div>"))))
(defun emacsconf-pad-prepopulate-talk-pad (o)
(interactive (list (let ((info (emacsconf-include-next-talks (emacsconf-get-talk-info) emacsconf-pad-number-of-next-talks)))
(emacsconf-complete-talk-info info))))
diff --git a/emacsconf-publish.el b/emacsconf-publish.el
index f5225a0..e141e9b 100644
--- a/emacsconf-publish.el
+++ b/emacsconf-publish.el
@@ -40,14 +40,15 @@
(defcustom emacsconf-public-media-directory nil "Can be over TRAMP" :type 'string :group 'emacsconf)
(defcustom emacsconf-protected-media-directory nil "Can be over TRAMP" :type 'string :group 'emacsconf)
-(defun emacsconf-update-talk (info)
+(defun emacsconf-update-talk (talk)
"Publish the schedule page and the page for this talk."
(interactive (list (emacsconf-complete-talk-info)))
(when (functionp 'emacsconf-upcoming-insert-or-update)
(emacsconf-upcoming-insert-or-update))
- (emacsconf-generate-before-page info)
- (emacsconf-generate-after-page info)
- (emacsconf-generate-main-schedule))
+ (let ((info (emacsconf-get-talk-info)))
+ (emacsconf-generate-before-page talk info)
+ (emacsconf-generate-after-page talk info)
+ (emacsconf-generate-main-schedule info)))
(defun emacsconf-publish-add-talk ()
"Add the current talk to the wiki."
@@ -366,20 +367,50 @@ resources."
(plist-get talk :public-email)
"emacsconf-org-private@gnu.org"))))
-(defun emacsconf-generate-before-page (talk)
+(defun emacsconf-generate-before-page (talk &optional info)
"Info included before the abstract."
(interactive (list (emacsconf-get-talk-info-for-subtree)))
+ (setq info (or info (emacsconf-get-talk-info)))
(with-temp-file (expand-file-name (format "%s-before.md" (plist-get talk :slug))
(expand-file-name "info" (expand-file-name emacsconf-year emacsconf-directory)))
(insert "<!-- Automatically generated by emacsconf-generate-before-page -->\n")
(when (eq emacsconf-publishing-phase 'schedule)
(insert "\n"
+ (format "<div class=\"schedule-in-context schedule-svg-container\" data-slug=\"%s\">\n" (plist-get talk :slug))
+ (let* ((width 800) (height 150)
+ (talk-date (format-time-string "%Y-%m-%d" (plist-get talk :start-time) emacsconf-timezone))
+ (start (date-to-time (concat talk-date "T" emacsconf-schedule-start-time emacsconf-timezone-offset)))
+ (end (date-to-time (concat talk-date "T" emacsconf-schedule-end-time emacsconf-timezone-offset)))
+ svg)
+ (with-temp-buffer
+ (setq svg (emacsconf-schedule-svg-day
+ (svg-create width height)
+ (format-time-string "%A" (plist-get talk :start-time) emacsconf-timezone)
+ width height
+ start end
+ (emacsconf-by-track
+ (seq-filter (lambda (o) (string= (format-time-string "%Y-%m-%d" (plist-get o :start-time) emacsconf-timezone)
+ talk-date))
+ info))))
+ (mapc (lambda (node)
+ (let ((rect (car (dom-by-tag node 'rect))))
+ (if (string= (dom-attr node 'data-slug) (plist-get talk :slug))
+ (progn
+ (dom-set-attribute rect 'opacity "0.8")
+ (dom-set-attribute rect 'stroke-width "3")
+ (dom-set-attribute (car (dom-by-tag node 'text)) 'font-weight "bold"))
+ (dom-set-attribute rect 'opacity "0.5"))))
+ (dom-by-tag svg 'a))
+ (svg-print svg)
+ (buffer-string)))
+ "\n</div>\n"
+ "\n"
(emacsconf-format-talk-schedule-info talk) "\n"))
;; Contact information
;; (insert "\n\n" (emacsconf-format-email-questions-and-comments talk) "\n")
(insert "<!-- End of emacsconf-generate-before-page -->")))
-(defun emacsconf-generate-after-page (talk &optional info elem)
+(defun emacsconf-generate-after-page (talk &optional info)
"Info included before the abstract."
(interactive (list (emacsconf-get-talk-info-for-subtree)))
(setq info (or info (emacsconf-get-talk-info)))
@@ -390,29 +421,7 @@ resources."
"<!-- Automatically generated by emacsconf-generate-after-page -->\n"
"\n\n"
(emacsconf-format-email-questions-and-comments talk) "\n"
- (format "<div class=\"schedule-in-context schedule-svg-container\" data-slug=\"%s\">\n" (plist-get talk :slug))
- (let* ((width 800) (height 150)
- (talk-date (format-time-string "%Y-%m-%d" (plist-get talk :start-time) emacsconf-timezone))
- (start (date-to-time (concat talk-date "T" emacsconf-schedule-start-time emacsconf-timezone-offset)))
- (end (date-to-time (concat talk-date "T" emacsconf-schedule-end-time emacsconf-timezone-offset)))
- (emacsconf-schedule-svg-modify-functions
- (append
- emacsconf-schedule-svg-modify-functions
- (list (lambda (o node &optional parent)
- (when (string= (plist-get o :slug) (plist-get talk :slug))
- (dom-set-attribute node 'stroke-width "3")))))))
- (with-temp-buffer
- (svg-print (emacsconf-schedule-svg-day
- (svg-create width height)
- (format-time-string "%A" (plist-get talk :start-time) emacsconf-timezone)
- width height
- start end
- (emacsconf-by-track
- (seq-filter (lambda (o) (string= (format-time-string "%Y-%m-%d" (plist-get o :start-time) emacsconf-timezone)
- talk-date))
- info))))
- (buffer-string)))
- "\n</div>\n<!-- End of emacsconf-generate-after-page -->\n")))
+ "\n\n<!-- End of emacsconf-generate-after-page -->\n")))
(defun emacsconf-sort-by-track-then-schedule (a b)
;; Gen,Dev; then by time
@@ -462,8 +471,10 @@ Back to the [[talks]] \n"
(let* ((talks (seq-remove (lambda (o) (string= (plist-get o :status) "CANCELLED"))
(sort (emacsconf-filter-talks info) #'emacsconf-sort-by-scheduled))))
(emacsconf-generate-nav-pages talks)
- (mapc #'emacsconf-generate-before-page talks)
- (mapc (lambda (o) (emacsconf-generate-after-page o talks)) talks))))
+ (mapc (lambda (o)
+ (emacsconf-generate-before-page o talks)
+ (emacsconf-generate-after-page o talks))
+ talks))))
(defun emacsconf-generate-talks-page (emacsconf-info)
(interactive "p")
@@ -1218,7 +1229,8 @@ Entries are sorted chronologically, with different tracks interleaved."
(plist-put track :year emacsconf-year)
(plist-put track :stream (concat emacsconf-stream-base (plist-get track :id) ".webm"))
(plist-put track :480p (concat emacsconf-stream-base (plist-get track :id) "-480p.webm"))
- (plist-put track :webchat (concat emacsconf-chat-base "?join=emacsconf,emacsconf-" (plist-get track :id)))
+ (plist-put track :webchat-channels (concat "emacsconf,emacsconf-" (plist-get track :id)))
+ (plist-put track :webchat (concat emacsconf-chat-base "?join=" (plist-get track :webchat-channels)))
(plist-put track :channel (concat "#emacsconf-" (plist-get track :id))))
emacsconf-tracks)
(let* ((info (sort (emacsconf-get-talk-info) #'emacsconf-sort-by-scheduled))