add generate org files

This commit is contained in:
rick 2022-04-02 16:04:50 +02:00
parent afec162a86
commit a71327a66d
2 changed files with 21 additions and 0 deletions

View file

@ -43,3 +43,6 @@ do
done
cp -t $target -r $annexes
echo "Generate org files..."
emacs -u $USER --script publish.el

18
publish.el Normal file
View file

@ -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")