aboutsummaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el37
1 files changed, 37 insertions, 0 deletions
diff --git a/publish.el b/publish.el
new file mode 100644
index 0000000..e708329
--- /dev/null
+++ b/publish.el
@@ -0,0 +1,37 @@
+(add-to-list 'load-path "./")
+(require 'ox-publish)
+(require 'shittyweb-html)
+
+(setq org-publish-project-alist
+ '(
+ ("org" :components ("org-notes" "org-static"))
+ ("org-notes"
+ :base-directory "org/"
+ :base-extension "org"
+ :exclude "new-index.org"
+ :publishing-directory "xhtml/"
+ :recursive t
+ :publishing-function shittyweb-publish-to-html
+ :headline-levels 4
+ :auto-preamble t
+ :with-author nil
+ :with-creator t
+ :with-toc t
+ :section-numbers t
+ :time-stamp-file nil
+ )
+ ("org-static"
+ :base-directory "org/"
+ :base-extension "css\\|html\\|xhtml\\|py\\|png\\|jpg\\|gif\\|cgi\\|rss"
+ :publishing-directory "xhtml/"
+ :recursive t
+ :publishing-function org-publish-attachment
+ ))
+ org-html-extension "xhtml"
+ org-html-validation-link nil
+ org-html-head-include-scripts nil
+ org-html-head-include-default-style nil
+ org-html-home/up-format "<a href=\"%sindex.xhtml\">\
+<img src=\"%simages/back_home.png\" alt=\"Back to home page\" /></a>")
+(org-publish-all t)
+