From 300131ca5a19d9de5250579d944a52b067b2d60b Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Sun, 5 Apr 2026 23:44:12 +0100 Subject: Rename prefix from downstroke/ to downstroke- --- makedocs.el | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 makedocs.el (limited to 'makedocs.el') diff --git a/makedocs.el b/makedocs.el new file mode 100644 index 0000000..6675092 --- /dev/null +++ b/makedocs.el @@ -0,0 +1,35 @@ +(require 'ox-publish) + +;; 1. Define the project paths relative to this script +(setq project-root (file-name-directory (or load-file-name buffer-file-name))) +(setq org-notes-dir (expand-file-name "docs/" project-root)) +(setq public-dir (expand-file-name "public/" project-root)) + +;; 2. Set up the publishing configuration +(setq org-publish-project-alist + `(("project-docs" + :base-directory ,org-notes-dir + :base-extension "org" + :publishing-directory ,public-dir + :recursive t + :publishing-function org-html-publish-to-html + :headline-levels 4 + :auto-preamble t + ;; This ensures ReadTheOrg works correctly + :html-head " + + + " + :html-head-extra "") + ("project-static" + :base-directory ,org-notes-dir + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf" + :publishing-directory ,public-dir + :recursive t + :publishing-function org-publish-attachment) + ("all" :components ("project-docs" "project-static")))) + +;; 3. The magic command to build everything +(org-publish-all t) + +(message "Build complete!") -- cgit v1.2.3