2022-04-03 02:04:53 +02:00
|
|
|
;; Script Emacs pour exporter en HTML et Org des fichiers .org.
|
|
|
|
;;
|
|
|
|
;; Copyright (C) 2022 rick G. <rick@gnous.eu>
|
|
|
|
;;
|
|
|
|
;; This program is free software: you can redistribute it and/or modify it under
|
|
|
|
;; the terms of the GNU General Public License as published by the Free Software
|
|
|
|
;; Foundation, either version 3 of the License, or (at your option) any later
|
|
|
|
;; version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
;; FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License along with
|
|
|
|
;; this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2022-04-02 16:04:50 +02:00
|
|
|
(require 'ox-publish)
|
|
|
|
(require 'htmlize)
|
|
|
|
(setq org-publish-use-timestamps-flag nil)
|
|
|
|
(setq org-publish-project-alist
|
|
|
|
'(
|
|
|
|
("nec"
|
|
|
|
:base-directory "nec"
|
|
|
|
:base-extension "org"
|
2022-04-02 17:47:23 +02:00
|
|
|
:exclude "cheatsheets"
|
2022-04-02 16:04:50 +02:00
|
|
|
:publishing-directory "www/nec"
|
|
|
|
:recursive t
|
2022-04-02 17:47:23 +02:00
|
|
|
:email "rick@gnous.eu"
|
|
|
|
:with-email t
|
|
|
|
:language fr
|
2022-04-02 16:04:50 +02:00
|
|
|
:auto-sitemap t
|
|
|
|
:sitemap-title "Notes et Cheatsheets"
|
2022-04-02 17:47:23 +02:00
|
|
|
:htmlized-source t
|
|
|
|
:html-link-home "/"
|
|
|
|
:publishing-function (org-html-publish-to-html org-org-publish-to-org)
|
2022-04-02 16:04:50 +02:00
|
|
|
; :auto-preamble t
|
|
|
|
)
|
|
|
|
))
|
|
|
|
(org-publish-project "nec")
|