diff options
| -rw-r--r-- | lisp/publish-config.el~ | 40 | ||||
| -rw-r--r-- | lisp/publish-hp.el | 33 | ||||
| -rw-r--r-- | lisp/publish-wiki.el | 34 | ||||
| -rw-r--r-- | lisp/publish.el | 3 | ||||
| -rw-r--r-- | lisp/publish.el~ | 5 |
5 files changed, 115 insertions, 0 deletions
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 "<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 ("org-notes" "org-static")))) + +(defun wiki-gen nil + "Generate wiki HTML files" + (interactive) + (org-publish-all)) + +(provide 'publish-config) 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) 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) diff --git a/lisp/publish.el b/lisp/publish.el new file mode 100644 index 0000000..bbe4fd3 --- /dev/null +++ b/lisp/publish.el @@ -0,0 +1,3 @@ +;; -*- lexical-binding: t; -*- +(load "/home/verdant/.emacs.d/lisp/publish-config.el") + diff --git a/lisp/publish.el~ b/lisp/publish.el~ new file mode 100644 index 0000000..5063b86 --- /dev/null +++ b/lisp/publish.el~ @@ -0,0 +1,5 @@ +;; -*- lexical-binding: t; -*- +(load "/home/verdant/.emacs.d/lisp/publish-config.el") +(require 'publish-config) +(wiki-gen) + |
