Skip to content

Instantly share code, notes, and snippets.

@michiakig
Created February 19, 2013 20:58
Show Gist options
  • Save michiakig/4989837 to your computer and use it in GitHub Desktop.
Save michiakig/4989837 to your computer and use it in GitHub Desktop.
(require 'org-publish)
(setq org-publish-project-alist
'(("org-notes"
:base-directory "~/scratch/org/"
:base-extension "org"
:publishing-directory "~/scratch/public_html/"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
:auto-preamble t
:auto-sitemap t
:sitemap-filename "sitemap.org"
:sitemap-title "Sitemap")
("org-static"
:base-directory "~/scratch/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "~/scratch/public_html/"
:recursive t
:publishing-function org-publish-attachment)
("org" :components ("org-notes" "org-static"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment