The issue is that although I set my build-site.el
with org-publish-cache nil
, it still creates cache. Plus, it’s not really working as even when I change a file, it says nothing has changed and thus doesn’t compile the files.
What am I doing wrong? Or is it a bug or something?
;; Load the publishing system
(require 'org)
(require 'ox-publish)
(require 'ox-html)
;; Necessary for code blocks
(require 'package)
(setq package-user-dir (expand-file-name "./.packages"))
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;; Initialize the package system
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; Install dependencies
(package-install 'htmlize)
;; https://writequit.org/articles/emacs-org-mode-generate-ids.html for permalinks. Org mode does not support by default
;; Customize the HTML output
(setq org-html-validation-link nil ; Don't show validation link
org-html-head-include-scripts nil ; Use own scripts
org-html-head-include-default-style nil ; Use own styles
org-publish-use-timestamps-flag nil ; Don’t use timestamps
org-publish-cache nil
;; org-publish-timestamp-directory "org-timestamps/"
org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\">"
org-html-doctype "html5"
org-html-html5-fancy t
org-export-with-smart-quotes t
)
;; Define the publishing project
(setq org-publish-project-alist
'(
("notes"
:base-directory "./../"
:base-extension "org"
:publishing-directory "./public"
:exclude "./"
:recursive t
:publishing-function org-html-publish-to-html
:org-html-preamble nil
:with-author t ;; Don't include author name
:with-creator t ;; Include Emacs and Org versions in footer
:with-toc t ;; Include a table of contents
:section-numbers nil ;; Don't include section numbers
:time-stamp-file nil
:auto-sitemap nil)
("static"
:base-directory "./../"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "./public/assets"
:exclude "./"
:recursive t
:publishing-function org-publish-attachment
:time-stamp-file nil
:auto-sitemap nil)
("cours"
:components ("notes" "static"))))
(org-publish-all t)
(message "Build complete!")
You need to sign in to view this answers
Leave feedback about this