-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.el
52 lines (42 loc) · 1.74 KB
/
publish.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;;; publish.el --- To publish my org site -*- lexical-binding: t; -*-
;; Author: Kanishak Vaidya <kanishak@gmail>
;; Maintainer: Kanishak Vaidya <kanishak@gmail>
;; This file is not part of GNU Emacs.
;;
;;; Commentary:
;;
;;; Code:
;; (org-export-define-derived-backend 'my-custom-backend 'html
;; :options-alist
;; '((:keywords "keywords" nil nil split)
;; (:filetags "filetags" nil nil split)))
;; (defun kpv/sitemap (file style project)
;; (concat (format-time-string "%Y-%m-%d" (org-publish-find-date file project)) " - [[./" file "][" (org-publish-find-title file project) "]] " (mapconcat 'identity (org-publish-find-property file :filetags project) " : ")))
(require 'org)
(setq org-html-validation-link nil ;; Don't show validation link
org-html-head-include-scripts nil ;; Use our own scripts
org-html-head-include-default-style nil ;; Use our own styles
org-export-with-timestamps nil
org-export-time-stamp-file nil)
(setq org-publish-project-alist
'(
("kvos-site"
:base-directory "~/doc/repos/arch-kvos/org-site"
:base-extension "org"
:publishing-directory "~/doc/repos/arch-kvos/docs"
:recursive t
:with-author nil
:with-broken-links t
:with-creator t
:html-validation-link nil
:publishing-function org-html-publish-to-html)
("kvos-static"
:base-directory "~/doc/repos/arch-kvos/org-site"
:base-extension "md\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|svg\\|ttf"
:publishing-directory "~/doc/repos/arch-kvos/docs"
:recursive t
:publishing-function org-publish-attachment)
("kvos" :components ("kvos-site" "kvos-static"))))
(org-publish-project "kvos")
;; (provide 'publish)
;;; publish.el ends here