emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Multiple publishing projects


From: Ian Barton
Subject: Re: [Orgmode] Multiple publishing projects
Date: Tue, 06 Oct 2009 11:05:55 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Apologies in advance if the answer to this query is obvious. I've looked through the documentation but can't find how to specify multiple publishing projects. There are examples of simple projects and projects with multiple components, but no example that I can find of a specification for multiple projects. I'm guessing this has to do with org-publish-project-alist, and that my rudimentary LISP comprehension prevents me from seeing the simple answer. I've set up one publishing project that works fine. I just can't figure out how to add a second one.

If someone can offer an example, or a pointer to an example I've overlooked, I'll be appreciative.

I don't know if this is the "right" way, but my .emacs looks like this:

(setq org-publish-project-alist
      '(

       ;; ... add all the components here (see below)...
      ("org-notes"
          :base-directory "~/nfs/firewall/Documents/org/"
          :base-extension "org"
          :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
          :recursive t
          :publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
          :auto-preamble t
          :auto-index t
          :index-filename "sitemap.org"
          :index-title "Sitemap"
      )

    ("org-static"
          :base-directory "~/nfs/firewall/Documents/org/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
          :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
          :recursive t
          :publishing-function org-publish-attachment)

    ("org" :components ("org-notes" "org-static"))

     ("org-mobile"
          :base-directory "~/nfs/firewall/Documents/org/"
          :base-extension "org"
          :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
          :recursive t
          :publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
          :auto-preamble t
          :auto-index t
          :html-extension "php"
          :index-filename "sitemap.org"
          :index-title "Sitemap"
      )


    ("mobile" :components ("org-mobile" "org-static"))


This gives me 2 projects "org" and "mobile". Note that you can mix and match bits - have used org-static in both my projects.

Ian.


      ))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]