aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-04-12 15:42:32 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-04-12 15:42:32 -0500
commit2eb5e64c62d7edf13e48fe6322e4cd1e80765695 (patch)
treea235e580acde59c1aa8907a5ea892e8a193d28fb
parent3ff1a0f3f1ddbe3951d24140c24131df9505e3a2 (diff)
htmlize fix
-rw-r--r--.build.yml2
-rw-r--r--publish.el9
2 files changed, 10 insertions, 1 deletions
diff --git a/.build.yml b/.build.yml
index 194adb2..784b2b2 100644
--- a/.build.yml
+++ b/.build.yml
@@ -7,7 +7,7 @@ sources:
- https://git.sr.ht/~jjanzen/dotfiles
tasks:
- build: |
- emacs --batch --script ~/website/publish.el
+ emacs --batch -f package-initialize --script ~/website/publish.el
- package: |
cd ~/public_html/
tar -cvz . > ../site.tar.gz
diff --git a/publish.el b/publish.el
index 5513b6f..fe78991 100644
--- a/publish.el
+++ b/publish.el
@@ -1,3 +1,12 @@
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
+(setq package-load-list '((htmlize t)))
+(package-initialize)
+
+(unless (package-installed-p 'htmlize)
+ (package-refresh-contents)
+ (package-install 'htmlize))
+
(require 'org)
(require 'ox-html)
(setq org-publish-project-alist