From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Multiple publishing projects Date: Tue, 06 Oct 2009 11:05:55 +0100 Message-ID: <4ACB1683.2040803@manor-farm.org> References: <67498229-DEEF-471D-A483-086079C66775@TSDYE.COM> Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv6vj-0007qn-MA for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 06:06:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv6vh-0007o2-Bb for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 06:06:02 -0400 Received: from [199.232.76.173] (port=56793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv6vh-0007np-5y for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 06:06:01 -0400 Received: from li40-130.members.linode.com ([72.14.178.130]:37591) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv6vg-00044u-MG for emacs-orgmode@gnu.org; Tue, 06 Oct 2009 06:06:00 -0400 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id D2A97CD87 for ; Tue, 6 Oct 2009 11:05:58 +0100 (BST) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (wilkesley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7I50dcE1HyAF for ; Tue, 6 Oct 2009 11:05:58 +0100 (BST) Received: from firewall.banter.local (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTP id A8003CD86 for ; Tue, 6 Oct 2009 11:05:57 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by firewall.banter.local (Postfix) with ESMTP id 97618D340 for ; Tue, 6 Oct 2009 11:05:56 +0100 (BST) Received: from firewall.banter.local ([127.0.0.1]) by localhost (firewall.banter.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CZPDMU1ErIT5 for ; Tue, 6 Oct 2009 11:05:56 +0100 (BST) Received: from [192.168.0.55] (unknown [192.168.0.55]) by firewall.banter.local (Postfix) with ESMTPSA id 33638C039 for ; Tue, 6 Oct 2009 11:05:56 +0100 (BST) In-Reply-To: <67498229-DEEF-471D-A483-086079C66775@TSDYE.COM> 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 Cc: emacs-orgmode@gnu.org > 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. ))