emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: lists@manor-farm.org
Cc: emacs-orgmode@gnu.org
Subject: Re: Multiple publishing projects
Date: Tue, 6 Oct 2009 07:24:48 -1000	[thread overview]
Message-ID: <37754211-05FC-48B7-A248-06246AB28A63@tsdye.com> (raw)
In-Reply-To: <4ACB1683.2040803@manor-farm.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

  reply	other threads:[~2009-10-06 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-06  6:33 Multiple publishing projects Thomas S. Dye
2009-10-06 10:05 ` Ian Barton
2009-10-06 17:24   ` Thomas S. Dye [this message]
2009-10-06 17:19 ` Sebastian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37754211-05FC-48B7-A248-06246AB28A63@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@manor-farm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).