This commit is contained in:
parent
6a73bdb74e
commit
fd5019335d
@ -5,6 +5,7 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: silex/emacs:27-alpine
|
image: silex/emacs:27-alpine
|
||||||
commands:
|
commands:
|
||||||
|
- apk add git
|
||||||
- emacs --script export.el
|
- emacs --script export.el
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
10
export.el
10
export.el
@ -1,14 +1,14 @@
|
|||||||
#!/usr/bin/emacs --script
|
#!/usr/bin/env -S emacs -Q --script
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
(require 'org)
|
||||||
|
(require 'ox-html)
|
||||||
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")))
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(package-refresh-contents)
|
(package-refresh-contents)
|
||||||
(package-install 'htmlize)
|
(package-install 'htmlize)
|
||||||
(package-install 's)
|
|
||||||
(require 's)
|
|
||||||
(setq org-confirm-babel-evaluate nil
|
(setq org-confirm-babel-evaluate nil
|
||||||
org-html-validation-link nil)
|
org-html-validation-link nil)
|
||||||
(let* ((files (mapcar #'expand-file-name
|
(let ((files (mapcar #'expand-file-name
|
||||||
(file-expand-wildcards "org/config/*.org"))))
|
(file-expand-wildcards "org/config/*.org"))))
|
||||||
(mapc (lambda (file)
|
(mapc (lambda (file)
|
||||||
(message (format "==========\nExporting %S\n==========" file))
|
(message (format "==========\nExporting %S\n==========" file))
|
||||||
|
Loading…
Reference in New Issue
Block a user