From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Multiple publishing projects Date: Tue, 6 Oct 2009 07:24:48 -1000 Message-ID: <37754211-05FC-48B7-A248-06246AB28A63@tsdye.com> References: <67498229-DEEF-471D-A483-086079C66775@TSDYE.COM> <4ACB1683.2040803@manor-farm.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvDmY-0008AC-KT for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 13:25:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvDmT-00081O-I6 for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 13:25:01 -0400 Received: from [199.232.76.173] (port=57525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvDmT-00081B-D1 for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 13:24:57 -0400 Received: from outbound-mail-127.bluehost.com ([67.222.38.27]:57826) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MvDmS-000804-V4 for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 13:24:57 -0400 In-Reply-To: <4ACB1683.2040803@manor-farm.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: lists@manor-farm.org Cc: emacs-orgmode@gnu.org Thanks Ian. Your example helped me make sense of the Org manual, which was a bit terse for my comprehension in this instance. My second publishing project is up and running now and I'm looking forward to the third. All the best, Tom On Oct 6, 2009, at 12:05 AM, Ian Barton wrote: >> 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. > > > )) > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode