2022-12-02 15:51:07 +01:00
|
|
|
#!/usr/local/bin/emacs --script
|
|
|
|
|
|
|
|
(require 'package)
|
2023-04-18 09:24:26 +02:00
|
|
|
(add-to-list 'package-archives
|
|
|
|
'("melpa" . "https://melpa.org/packages/") t)
|
|
|
|
(add-to-list 'package-archives
|
|
|
|
'("org" . "http://orgmode.org/elpa/") t)
|
2022-12-02 15:51:07 +01:00
|
|
|
|
|
|
|
(package-initialize)
|
|
|
|
|
2023-04-18 09:24:26 +02:00
|
|
|
(unless package-archive-contents
|
|
|
|
(package-refresh-contents))
|
2022-12-02 15:51:07 +01:00
|
|
|
|
2023-04-18 09:24:26 +02:00
|
|
|
(unless (package-installed-p 'use-package)
|
|
|
|
(package-install 'use-package))
|
|
|
|
(require 'use-package)
|
|
|
|
(setq use-package-always-ensure t)
|
2022-12-03 17:36:17 +01:00
|
|
|
|
2023-04-18 09:24:26 +02:00
|
|
|
(use-package auto-package-update
|
|
|
|
:custom
|
|
|
|
(auto-package-update-interval 7)
|
|
|
|
(auto-package-update-prompt-before-update nil)
|
|
|
|
(auto-package-update-hide-results t)
|
|
|
|
:config
|
|
|
|
(auto-package-update-maybe))
|
2022-12-02 15:51:07 +01:00
|
|
|
|
2023-04-18 09:24:26 +02:00
|
|
|
(use-package org
|
|
|
|
:pin org)
|
2022-12-02 15:51:07 +01:00
|
|
|
|
|
|
|
(use-package htmlize)
|
|
|
|
|
|
|
|
(require 'ox-publish)
|
|
|
|
(require 'ox-html)
|
|
|
|
(require 'htmlize)
|
|
|
|
|
2023-03-10 11:19:01 +01:00
|
|
|
(setq org-html-doctype "html5")
|
2022-12-02 15:51:07 +01:00
|
|
|
(setq org-html-htmlize-output-type 'css)
|
2022-12-02 16:11:34 +01:00
|
|
|
(setq org-export-time-stamp-file nil)
|
2022-12-02 15:51:07 +01:00
|
|
|
(setq org-html-validation-link nil)
|
2022-12-02 17:01:11 +01:00
|
|
|
(setq org-html-head-include-default-style nil)
|
2022-12-02 15:51:07 +01:00
|
|
|
(setq org-publish-project-alist
|
|
|
|
'(("tlakh"
|
2023-01-09 17:58:21 +01:00
|
|
|
:base-directory "/var/www/sha256.net/"
|
2022-12-02 16:11:24 +01:00
|
|
|
:publishing-function org-html-publish-to-html
|
2023-01-09 17:58:21 +01:00
|
|
|
:publishing-directory "/var/www/sha256.net/"
|
2022-12-02 16:11:24 +01:00
|
|
|
:section-numbers nil
|
|
|
|
:with-author nil
|
|
|
|
:with-email nil
|
|
|
|
:with-timestamps nil
|
|
|
|
:with-toc nil
|
|
|
|
:with-creator: nil
|
|
|
|
:time-stamp-file: nil
|
2023-01-01 10:28:06 +01:00
|
|
|
:html-postamble "<p class=\"date\">Published: %d</p>
|
|
|
|
<hr /><footer><nav><a href=\"/\">< Home</a></nav>
|
|
|
|
Copyright © 2014 - 2023 Florian Obser. All rights reserved.
|
|
|
|
</footer>"
|
2022-12-02 15:51:07 +01:00
|
|
|
:html-head-include-default-style: nil
|
2023-01-01 10:28:06 +01:00
|
|
|
:html-head "<link rel=\"stylesheet\" href=\"simple.min.css\" type=\"text/css\"/>
|
|
|
|
<link rel=\"stylesheet\" href=\"htmlize.min.css\" type=\"text/css\"/>
|
|
|
|
<link rel=\"stylesheet\" href=\"custom.css\" type=\"text/css\"/>")))
|
2022-12-02 15:51:07 +01:00
|
|
|
|
|
|
|
(org-publish "tlakh")
|