From e07e1367057c46e0e80e66d644d4449f85365bc6 Mon Sep 17 00:00:00 2001 From: Blendoit Date: Thu, 11 Feb 2021 21:24:15 -0800 Subject: www --- www/publish.el | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 www/publish.el (limited to 'www/publish.el') diff --git a/www/publish.el b/www/publish.el new file mode 100644 index 0000000..dbf8988 --- /dev/null +++ b/www/publish.el @@ -0,0 +1,84 @@ +(setq org-publish-project-alist + '(;; First Project + ("org-notes" + :base-directory "~/www/org/" + :base-extension "org" + :publishing-directory "~/www/build/" + :recursive t + :exclude ".*-template\.org\\|README\.org" ; exclude org-reveal slides and other files + :publishing-function org-html-publish-to-html + :headline-levels 2 ; Just the default for this project. + :auto-sitemap t ; Generate sitemap.org automagically... + :sitemap-filename "org-sitemap.org" ; ... call it sitemap.org (it's the default)... + :sitemap-title "Plan du site" ; ... with title 'Sitemap'. + :with-creator nil ; Disable the inclusion of "Created by Org" in the postamble. + :with-email nil ; Disable the inclusion of "(your email)" in the postamble. + :with-author nil ; Enable the inclusion of "Author: Your Name" in the postamble. + :auto-preamble t; ; Enable auto preamble + :auto-postamble t ; Enable auto postamble + :table-of-contents t ; Set this to "t" if you want a table of contents, set to "nil" disables TOC. + :toc-levels 1 ; Just the default for this project. + :section-numbers nil ; Set this to "t" if you want headings to have numbers. + :html-head-include-default-style nil ;Enable the default css style + :html-head-include-scripts nil ;Disable the default javascript snippet + :html-head "\n\n" ;Enable custom css style and other tags + :html-link-home "index.html" ; Just the default for this project. + :html-link-up "misc.html" ; Just the default for this project. + ) + + ("org-static" + :base-directory "~/www/org/" + :base-extension "html\\|xml\\|css\\|js\\|png\\|jpg\\|jpeg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|zip\\|gz\\|csv\\|m\\|R\\|el" + :include (".htaccess") + :publishing-directory "~/www/build/" + :recursive t + :publishing-function org-publish-attachment + :exclude "Rplots.pdf\\|README\\|LICENSE\\|\\.gitignore" + ) + + ("org" + :components ("org-notes" "org-static") + ) + + + ;; Second Project + ("org-r-notes" + :base-directory "~/teaching/algo-prog-R/org/" + :base-extension "org" + :publishing-directory "~/teaching/algo-prog-R/build/" + :recursive t + :exclude ".*-template\.org\\|README\.org" ; exclude org-reveal slides and other files + :publishing-function org-html-publish-to-html + :headline-levels 2 ; Just the default for this project. + :auto-sitemap t ; Generate sitemap.org automagically... + :sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the default)... + :sitemap-title "Sitemap" ; ... with title 'Sitemap'. + :with-creator nil ; Disable the inclusion of "Created by Org" in the postamble. + :with-email nil ; Disable the inclusion of "(your email)" in the postamble. + :with-author nil ; Enable the inclusion of "Author: Your Name" in the postamble. + :auto-preamble t; ; Enable auto preamble + :auto-postamble t ; Enable auto postamble + :table-of-contents t ; Set this to "t" if you want a table of contents, set to "nil" disables TOC. + :toc-levels 2 ; Just the default for this project. + :section-numbers t ; Set this to "t" if you want headings to have numbers. + :html-head-include-default-style nil ;Enable the default css style + :html-head-include-scripts nil ;Disable the default javascript snippet + :html-head "\n\n\n" ;Enable custom css style and other tags + :html-link-home "index.html" ; Just the default for this project. + :html-link-up "sitemap.html" ; Just the default for this project. + ) + + ("org-r-static" + :base-directory "~/teaching/algo-prog-R/org/" + :base-extension "html\\|xml\\|css\\|js\\|png\\|jpg\\|jpeg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|zip\\|gz\\|csv\\|m\\|R" + :publishing-directory "~/teaching/algo-prog-R/build/" + :recursive t + :publishing-function org-publish-attachment + :exclude "Rplots.pdf\\|README\\|LICENSE\\|\\.gitignore" + ) + + ("org-r" + :components ("org-r-notes" "org-r-static") + ) + ) + ) -- cgit v1.2.3