projects
/
gyiwr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afec162
)
add generate org files
author
rick
<rick@gnous.eu>
Sat, 2 Apr 2022 14:04:50 +0000
(16:04 +0200)
committer
rick
<rick@gnous.eu>
Sat, 2 Apr 2022 14:08:16 +0000
(16:08 +0200)
generate.sh
patch
|
blob
|
blame
|
history
publish.el
[new file with mode: 0644]
patch
|
blob
diff --git
a/generate.sh
b/generate.sh
index 4e2ea9686701f6650265655b5e15fe78f2d791d5..4405a5c797b9ba90b4bba404432b54971fd24fe2 100755
(executable)
--- 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
(file)
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")