-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish-muse.sh
executable file
·34 lines (30 loc) · 1.09 KB
/
publish-muse.sh
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
:;exec emacs -batch -l "$0" "$@" --no-site-file -q # -*- Emacs-Lisp -*-
; @emacs -batch -l "%~f0" %* --no-site-file -q & goto :EOF
;
; Gives a (usually) big random integer number, with no arguments.
; If a positive integer n is given, the range is [0,n) .
;
(require 'muse-mode)
(if (featurep 'muse-mode)
(progn
(require 'muse-html)
(require 'muse-wiki)
(require 'muse-project)
(setq muse-project-alist
'(
("CategoryPersonal"
("~/prj-personal/doc-wiki" :default "index")
(:base "html" :path "~/res/doc/wiki-personal")
(:base "pdf" :path "~/res/doc/wiki-personal") )
("CategoryWork"
("~/prj-work/doc-wiki" :default "index")
(:base "html" :path "~/res/doc/wiki-work")
(:base "pdf" :path "~/res/doc/wiki-work") )
))
(print "publishing personal wiki...")
(muse-project-publish "CategoryPersonal")
(print "publishing work wiki...")
(muse-project-publish "CategoryWork")
))
;
;:EOF