forked from Maverobot/drake-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-site.el
22 lines (19 loc) · 809 Bytes
/
build-site.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; Load the publishing system
(require 'ox-publish)
;; Define the publishing project
(setq org-publish-project-alist
(list
(list "my-org-site"
:recursive t
:base-directory "./"
:exclude "README.org"
:publishing-directory "./public"
:publishing-function 'org-html-publish-to-html
:with-author nil ;; Don't include author name
:with-creator t ;; Include Emacs and Org versions in footer
:with-toc t ;; Include a table of contents
:section-numbers nil ;; Don't include section numbers
:time-stamp-file nil))) ;; Don't include time stamp in file
;; Generate the site output
(org-publish-all t)
(message "Build complete!")