emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@manor-farm.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Multiple publishing projects
Date: Tue, 06 Oct 2009 11:05:55 +0100	[thread overview]
Message-ID: <4ACB1683.2040803@manor-farm.org> (raw)
In-Reply-To: <67498229-DEEF-471D-A483-086079C66775@TSDYE.COM>

> 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	other threads:[~2009-10-06 10:06 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 [this message]
2009-10-06 17:24   ` Thomas S. Dye
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=4ACB1683.2040803@manor-farm.org \
    --to=lists@manor-farm.org \
    --cc=emacs-orgmode@gnu.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).