aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/publish-wiki.el
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-05 12:44:04 +0800
committerverdant <im@verdant.ee>2026-07-05 12:44:04 +0800
commit6fbb0bf727c3d674d4cb018925be2c444edc409d (patch)
treea6bf96a893b80f028f741e9f63c04e15bd351a81 /lisp/publish-wiki.el
parent1feec992962fefe6373a3d86eb79a633e25415f7 (diff)
downloadvemacs-6fbb0bf727c3d674d4cb018925be2c444edc409d.tar.gz
vemacs-6fbb0bf727c3d674d4cb018925be2c444edc409d.zip
Add lisp directory for homepage and wiki export
Diffstat (limited to 'lisp/publish-wiki.el')
-rw-r--r--lisp/publish-wiki.el34
1 files changed, 34 insertions, 0 deletions
diff --git a/lisp/publish-wiki.el b/lisp/publish-wiki.el
new file mode 100644
index 0000000..89eee37
--- /dev/null
+++ b/lisp/publish-wiki.el
@@ -0,0 +1,34 @@
+;; -*- lexical-binding: t; -*-
+(require 'org)
+(require 'ox-publish)
+
+
+(setq org-publish-project-alist
+ '(
+ ;; These are the main web files
+ ("wiki"
+ :base-directory "~/org/wiki/" ;; Change this to your local dir
+ :base-extension "org"
+ :publishing-directory "~/org/hp/public/wiki/"
+ :recursive t
+ :publishing-function org-html-publish-to-html
+ :headline-levels 4 ; Just the default for this project.
+ :auto-preamble nil
+ :section-numbers nil
+ :table-of-contents t
+ ;; :style "<link rel='stylesheet' type='text/css' href='css/org-manual.css' />"
+ :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 ("wiki" "org-static"))))
+
+(provide 'publish-wiki)