summaryrefslogtreecommitdiff
path: root/build-docs.el
blob: 01e13c1d563d732835d75af91070905402e99535 (about) (plain)
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
(require 'package)
(setq package-user-dir (expand-file-name "./.packages"))
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
                         ("elpa" . "https://elpa.gnu.org/packages/")))

;; Initialize the package system
(package-initialize)
(unless package-archive-contents
  (package-refresh-contents))

;; Load the publishing system
(require 'ox-publish)

(setq org-publish-project-alist
      (list
       (list "org-site:main"
             :recursive nil
	     :base-extension "org"
             :base-directory "./org"
             :publishing-function 'org-md-publish-to-md
             :publishing-directory "./"
             :with-author nil           ;; Don't include author name
             :with-creator t            ;; Include Emacs and Org versions in footer
             :with-toc nil                ;; 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!")