From 6fbb0bf727c3d674d4cb018925be2c444edc409d Mon Sep 17 00:00:00 2001 From: verdant Date: Sun, 5 Jul 2026 12:44:04 +0800 Subject: Add lisp directory for homepage and wiki export --- lisp/publish-config.el~ | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lisp/publish-config.el~ (limited to 'lisp/publish-config.el~') diff --git a/lisp/publish-config.el~ b/lisp/publish-config.el~ new file mode 100644 index 0000000..1c1919a --- /dev/null +++ b/lisp/publish-config.el~ @@ -0,0 +1,40 @@ +;; -*- lexical-binding: t; -*- +(require 'org) + +(setq org-publish-project-alist + '( + ;; These are the main web files + ("org-notes" + :base-directory "~/org/wiki/" ;; Change this to your local dir + :base-extension "org" + :publishing-directory "~/dev/personal-page/wiki" + :recursive t + :publishing-function org-html-publish-to-html + :headline-levels 4 ; Just the default for this project. + :auto-preamble nil + :auto-sitemap t + :sitemap-filename "sitemap.org" + :sitemap-title "sitemap" + :section-numbers nil + :table-of-contents t + ;; :style "" + :style-include-default nil + ) + + ;; These are static files (images, pdf, etc) + ("org-static" + :base-directory "~/tmp/www/" ;; Change this to your local dir + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|txt\\|asc" + :publishing-directory "~/tmp/output" + :recursive t + :publishing-function org-publish-attachment + ) + + ("org" :components ("org-notes" "org-static")))) + +(defun wiki-gen nil + "Generate wiki HTML files" + (interactive) + (org-publish-all)) + +(provide 'publish-config) -- cgit v1.2.3