From cbfce738c254a243b995beb52cff065846dd9dfb Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 10 Nov 2018 02:21:50 +0530 Subject: Initial commit. --- build.el | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 build.el (limited to 'build.el') diff --git a/build.el b/build.el new file mode 100755 index 0000000..54f62e9 --- /dev/null +++ b/build.el @@ -0,0 +1,34 @@ +#! /home/arun/.guix-profile/bin/emacs --script + +(require 'ox-publish) + +(setq org-publish-project-alist + '(("pages" + :base-directory "pages" + :base-extension "org" + :publishing-directory "site" + :publishing-function org-html-publish-to-html + :html-head "" + :html-postamble nil + :html-indent t) + ("static" + :base-directory "static" + :base-extension any + :publishing-directory "site/static" + :publishing-function org-publish-attachment)) + org-export-with-section-numbers nil + org-export-with-toc nil + org-html-head-include-default-style nil + org-html-head-include-scripts nil + org-export-filter-link-functions + (list (lambda (output backend info) + (string-match "" output) + (let ((href (match-string 1 output))) + (if (string-prefix-p "http" href) + output + (replace-match (file-name-base href) + nil nil output 1))))) + make-backup-files nil) + +(org-publish-all t) + -- cgit v1.2.3