-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org_publish.el
34 lines (28 loc) · 1 KB
/
org_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
;; basic setup to get source code exports to work
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")))
(package-initialize)
(package-refresh-contents)
(package-install 'org)
(package-install 'htmlize)
(setq org-html-htmlize-output-type `nil)
(setq org-publish-project-alist
'(("main-site"
:base-directory "org"
:base-extension "org"
:publishing-directory "."
:recursive t
:publishing-function org-html-publish-to-html
:headline-levels 4
:with-toc f
:html-extension "html"
:body-only t)
("resources"
:base-directory "org"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg"
:publishing-directory "."
:recursive t
:publishing-function org-publish-attachment)
("themkat" :components ("main-site" "resources"))))