tlakh/publish.el
2022-12-04 12:51:12 +01:00

55 lines
1.4 KiB
EmacsLisp
Executable File

#!/usr/local/bin/emacs --script
(require 'package)
(package-initialize)
;; (setq package-archives '(("melpa" . "https://melpa.org/packages/")
;; ("elpa" . "https://elpa.gnu.org/packages/")
;; ("org" . "http://orgmode.org/elpa/")))
;; (unless package-archive-contents
;; (package-refresh-contents))
;; (unless (package-installed-p 'use-package)
;; (package-install 'use-package))
;; (require 'use-package)
(setq use-package-always-ensure t)
(use-package htmlize)
(require 'ox-publish)
(require 'ox-html)
(require 'htmlize)
(require 'org)
(setq org-html-htmlize-output-type 'css)
(setq org-export-time-stamp-file nil)
(setq org-html-validation-link nil)
(setq org-html-head-include-default-style nil)
(setq org-publish-project-alist
'(("tlakh"
:base-directory "/var/www/htdocs/"
:publishing-function org-html-publish-to-html
:publishing-directory "/var/www/htdocs/"
:section-numbers nil
:with-author nil
:with-email nil
:with-timestamps nil
:with-toc nil
:with-creator: nil
:time-stamp-file: nil
:html-head-include-default-style: nil
: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\"/>")))
(org-publish "tlakh")