-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.el
37 lines (30 loc) · 1.13 KB
/
publish.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(require 'ox-publish)
; https://stackoverflow.com/questions/9742836/how-do-i-format-the-postamble-in-html-export-with-org-mode
(setq org-html-postamble "
<p>Revised: %C</p>
<p>Created: %d</p>
<p>Author: %a</p>
<p>Email: %e</p>
<script src=\"https://utteranc.es/client.js\" repo=\"DreamAndDead/DreamAndDead.github.io\" issue-term=\"pathname\" label=\"Comment\" theme=\"github-light\" crossorigin=\"anonymous\" async></script>
")
; https://emacs.stackexchange.com/questions/20731/setting-up-ditaa-in-org-mode
(setq org-ditaa-jar-path "~/project/lua51/tool/ditaa.jar")
(org-babel-lob-ingest "./book/lib.org")
(setq org-babel-lua-command "lua5.1")
(setq org-publish-project-alist
'(
("posts"
:base-extension "org"
:base-directory "book/"
:publishing-directory "docs/"
:publishing-function org-html-publish-to-html
:recursive t
)
("assets"
:base-extension "css\\|js\\|png\\|jpg\\|ico\\|pdf"
:base-directory "book/"
:publishing-directory "docs/"
:publishing-function org-publish-attachment
:recursive t
)
("all" :components ("posts" "assets"))))