forked from emacs-china/orgmode-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate.el
executable file
·30 lines (29 loc) · 929 Bytes
/
generate.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
#!/usr/bin/env emacs --batch --script
;; Author: amoblin <[email protected]>
;; File Name: generate
;; Create Time: 2013-12-19 12:46:31
;; This file is created from ~Marboo/media/file_init/default.init.el
;; 本文件由 ~Marboo/media/file_init/default.init.el 复制而来
(require 'org-publish)
(setq org-publish-project-alist
'(
;; ... add all the components here (see below)...
("org-notes"
:base-directory "."
:base-extension "org"
:publishing-directory "html"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
:auto-preamble t
)
("org-static"
:base-directory "~/org/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "~/public_html/"
:recursive t
:publishing-function org-publish-attachment
)
("org" :components ("org-notes"))
))
(org-publish-project "org")