aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/publish-hp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/publish-hp.el')
-rw-r--r--lisp/publish-hp.el33
1 files changed, 33 insertions, 0 deletions
diff --git a/lisp/publish-hp.el b/lisp/publish-hp.el
new file mode 100644
index 0000000..d469e61
--- /dev/null
+++ b/lisp/publish-hp.el
@@ -0,0 +1,33 @@
+;; -*- lexical-binding: t; -*-
+(require 'org)
+(require 'ox-publish)
+
+(setq org-publish-project-alist
+ '(
+ ;; These are the main web files
+ ("hp"
+ :base-directory "~/org/hp" ;; Change this to your local dir
+ :base-extension "org"
+ :publishing-directory "~/org/hp/public/"
+ :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 ("hp" "org-static"))))
+
+(provide 'publish-hp)