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
_______________________________________________
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