From a71327a66d41f0783300517ee6400e90e40ea061 Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 2 Apr 2022 16:04:50 +0200 Subject: [PATCH] add generate org files --- generate.sh | 3 +++ publish.el | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 publish.el diff --git a/generate.sh b/generate.sh index 4e2ea96..4405a5c 100755 --- a/generate.sh +++ b/generate.sh @@ -43,3 +43,6 @@ do done cp -t $target -r $annexes + +echo "Generate org files..." +emacs -u $USER --script publish.el diff --git a/publish.el b/publish.el new file mode 100644 index 0000000..0101227 --- /dev/null +++ b/publish.el @@ -0,0 +1,18 @@ +(require 'ox-publish) +(require 'htmlize) +(setq org-publish-use-timestamps-flag nil) +(setq org-publish-project-alist + '( + ("nec" + :base-directory "nec" + :base-extension "org" + :exclude "www" + :publishing-directory "www/nec" + :recursive t + :auto-sitemap t + :sitemap-title "Notes et Cheatsheets" + :publishing-function org-html-publish-to-html +; :auto-preamble t + ) +)) +(org-publish-project "nec")