summaryrefslogblamecommitdiffstats
path: root/roles/publish/templates/emacsconf-config.el
blob: fbd9ae7c9a613c70acbd145c32176a6155781b99 (plain) (tree)
1
2
3

                        
                                                 














                                                                                        



                                                                                                          
 
                                            
                                                                       

                                                           

                                                              
          
                                                                                                 
           
 
                                          
                                        





                             


                       

                                                                              
                                                                                            
                                                                                

                                                                                              
;; {{ ansible_managed }}

(add-to-list 'load-path "{{ emacsconf_el_dir }}")
(org-babel-do-load-languages  'org-babel-load-languages '((emacs-lisp . t) (shell . t)))
(setq emacsconf-year "{{ emacsconf_year }}")
(setq emacsconf-org-file "{{ emacsconf_org_file }}")
(setq emacsconf-directory "{{ emacsconf_edit_wiki_dir }}")
{% if emacsconf_streaming_nick is defined %}
(setq emacsconf-streaming-nick "{{ emacsconf_streaming_nick }}")
{% endif %}
{% if emacsconf_org_tag is defined %}
(setq emacsconf-org-tag "{{ emacsconf_org_tag }}")
{% endif %}
{% if emacsconf_ansible_directory is defined %}
(setq emacsconf-ansible-directory "{{ emacsconf_ansible_directory }}")
{% endif %}
(setq emacsconf-pad-api-key "{{ etherpad_api_key }}")
(setq emacsconf-publishing-phase '{{ emacsconf_publishing_phase }})
(setq emacsconf-backstage-password "{{ emacsconf_backstage_password }}")

(setq emacsconf-backstage-dir "/ssh:orga@media.emacsconf.org:/var/www/media.emacsconf.org/2022/backstage")
(setq emacsconf-upload-dir "/ssh:orga@media.emacsconf.org:/srv/upload")

{% if ansible_host == "res.emacsconf.org" %}
(setq emacsconf-res-dir "/data/{{ emacsconf_id }}/{{ emacsconf_year}}")
(setq emacsconf-cache-dir "/data/{{ emacsconf_id }}/cache")
(setq emacsconf-stream-host "localhost")
(setq emacsconf-stream-overlay-dir "/data/emacsconf/overlays")
(setq emacsconf-stream-asset-dir "/data/emacsconf/assets")
{% else %}
(setq emacsconf-res-dir (format "/ssh:orga@res.emacsconf.org:/data/emacsconf/%s" emacsconf-year))
{% endif %}

(add-to-list 'load-path "~/compile-media")
(add-to-list 'load-path "~/subed/subed")
(require 'compile-media)
(require 'emacsconf)
(require 'emacsconf-publish)
(require 'emacsconf-schedule)
(require 'emacsconf-erc)
(require 'emacsconf-stream)
(require 'subed)
(require 'subed-vtt)
(require 'subed-common)
(setq emacsconf-tracks
      '((:name "General" :color "peachpuff" :id "gen" :channel "emacsconf-gen"
				       :tramp "/ssh:emacsconf-gen@res.emacsconf.org#46668:")
        (:name "Development" :color "skyblue" :id "dev" :channel "emacsconf-dev"
				       :tramp "/ssh:emacsconf-dev@res.emacsconf.org#46668:")))