-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-gh-pages.el
37 lines (27 loc) · 998 Bytes
/
build-gh-pages.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
35
36
37
(require 'package)
(setq package-user-dir (expand-file-name "./.packages"))
(setq package-archives
'(("GNU ELPA" . "https://elpa.gnu.org/packages/")
("org" . "https://orgmode.org/elpa/")
("MELPA Stable" . "https://stable.melpa.org/packages/")
("MELPA" . "https://melpa.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(setq package-load-list '(all))
(unless (package-installed-p 'org)
(package-install 'org))
(unless (package-installed-p 'htmlize)
(package-install 'htmlize))
(use-package org :ensure t)
(use-package htmlize :ensure t)
(setq org-html-head-include-default-style nil
org-html-htmlize-output-type 'css
org-publish-timestamp-directory "./.org-cache/")
(find-file "config.org")
(org-html-export-to-html)
(find-file "dotfiles.org")
(org-html-export-to-html)